Skip to content

Commit

Permalink
try fix wasm and add hostcpu for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Sep 21, 2024
1 parent 483b2d8 commit ec8f931
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 6 additions & 0 deletions isal-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,19 @@ 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())
.stderr(Stdio::piped())
.args([
"install",
&format!("prefix={}", install_path.display()),
host_cpu,
"-f",
"Makefile.unx",
cflags,
Expand Down

0 comments on commit ec8f931

Please sign in to comment.