From c3a36bb17d65ad172be0aa26bb8d3afe3a85aed7 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 22 Jun 2021 17:19:02 +0100 Subject: [PATCH] Cross-compile matrix-seshat for aarch64-apple-darwin --- hak/matrix-seshat/build.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hak/matrix-seshat/build.js b/hak/matrix-seshat/build.js index 77ac629..bb1f15e 100644 --- a/hak/matrix-seshat/build.js +++ b/hak/matrix-seshat/build.js @@ -278,6 +278,10 @@ async function buildMatrixSeshat(hakEnv, moduleInfo) { env.RUSTUP_TOOLCHAIN = hakEnv.arch == 'x64' ? 'stable-x86_64-pc-windows-msvc' : 'stable-i686-pc-windows-msvc'; } + if (!hakEnv.isHost()) { + env.CARGO_BUILD_TARGET = hakEnv.getTargetId(); + } + console.log("Running neon with env", env); await new Promise((resolve, reject) => { const proc = childProcess.spawn(