From ec8f931ae8914dbbb71ebe3f3f45f1a38d25bbe3 Mon Sep 17 00:00:00 2001 From: Miles Granger Date: Sat, 21 Sep 2024 08:28:50 +0200 Subject: [PATCH] try fix wasm and add hostcpu for builds --- .github/workflows/CI.yml | 2 +- isal-sys/build.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fc26f54..83d5441 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -56,7 +56,7 @@ jobs: uses: mymindstorm/setup-emsdk@v14 - name: Build - run: cargo build --target wasm32-unknown-emscripten --no-default-features --features ${{ matrix.build }} + run: cargo build --target wasm32-unknown-emscripten --no-default-features --features regenerate-bindings --features ${{ matrix.build }} test-native: runs-on: ${{ matrix.os }} diff --git a/isal-sys/build.rs b/isal-sys/build.rs index ef7fe67..9186499 100644 --- a/isal-sys/build.rs +++ b/isal-sys/build.rs @@ -42,6 +42,11 @@ fn main() { } else { "CFLAGS_=-fPIC -O3" }; + let host_cpu = if target_arch == "aarch64" { + "host_cpu=aarch64" + } else { + "host_cpu=x86_64" + }; Command::new("make") .stdout(Stdio::piped()) @@ -49,6 +54,7 @@ fn main() { .args([ "install", &format!("prefix={}", install_path.display()), + host_cpu, "-f", "Makefile.unx", cflags,