Skip to content

Commit e36b7ac

Browse files
authored
Fix illegal instruction error on arm64 by enabling no_opt_arch feature for mimalloc-safe (#6055)
1 parent f1e123b commit e36b7ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rust/bindings_napi/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ xxhash = { path = "../xxhash" }
1818
[target.'cfg(not(any(target_os = "linux", target_os = "freebsd")))'.dependencies]
1919
mimalloc-safe = { version = "0.1.54" }
2020

21-
[target.'cfg(any(all(target_os = "linux", not(target_arch = "loongarch64"), not(all(target_arch = "riscv64", target_env = "musl"))), all(target_os = "freebsd", not(target_arch = "aarch64"))))'.dependencies]
21+
[target.'cfg(any(all(target_os = "linux", not(target_arch = "aarch64"), not(target_arch = "loongarch64"), not(all(target_arch = "riscv64", target_env = "musl"))), all(target_os = "freebsd", not(target_arch = "aarch64"))))'.dependencies]
2222
mimalloc-safe = { version = "0.1.54", features = ["local_dynamic_tls"] }
2323

24+
[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies]
25+
mimalloc-safe = { version = "0.1.54", features = ["local_dynamic_tls", "no_opt_arch"] }
26+
2427
[build-dependencies]
2528
napi-build = "2.2.3"

0 commit comments

Comments
 (0)