diff --git a/apps/oxlint/Cargo.toml b/apps/oxlint/Cargo.toml index 91f2a2db9d13e..f5c240105d9db 100644 --- a/apps/oxlint/Cargo.toml +++ b/apps/oxlint/Cargo.toml @@ -40,12 +40,15 @@ serde_json = { workspace = true } tempfile = { workspace = true } tracing-subscriber = { workspace = true, features = [] } # Omit the `regex` feature -[target.'cfg(all(not(target_os = "linux"), not(target_os = "freebsd"), not(target_family = "wasm")))'.dependencies] +[target.'cfg(not(any(target_os = "linux", target_os = "freebsd", target_arch = "arm", target_family = "wasm")))'.dependencies] mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit"] } -[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies] +[target.'cfg(all(target_os = "linux", not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies] mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls"] } +[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls", "no_opt_arch"] } + [dev-dependencies] insta = { workspace = true } lazy-regex = { workspace = true } diff --git a/napi/minify/Cargo.toml b/napi/minify/Cargo.toml index 4ceda0115b9c3..1e805440004d7 100644 --- a/napi/minify/Cargo.toml +++ b/napi/minify/Cargo.toml @@ -33,11 +33,14 @@ oxc_syntax = { workspace = true } napi = { workspace = true } napi-derive = { workspace = true } -[target.'cfg(all(not(target_os = "linux"), not(target_os = "freebsd"), not(target_arch = "arm"), not(target_family = "wasm")))'.dependencies] -mimalloc-safe = { workspace = true, features = ["skip_collect_on_exit"], optional = true } +[target.'cfg(not(any(target_os = "linux", target_os = "freebsd", target_arch = "arm", target_family = "wasm")))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit"] } -[target.'cfg(any(all(target_os = "linux", not(target_arch = "arm")), target_os = "freebsd"))'.dependencies] -mimalloc-safe = { workspace = true, features = ["skip_collect_on_exit", "local_dynamic_tls"], optional = true } +[target.'cfg(all(target_os = "linux", not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls"] } + +[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls", "no_opt_arch"] } [build-dependencies] napi-build = { workspace = true } diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index 8a0f3f6906ee6..9544109aa5c29 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -32,11 +32,14 @@ rustc-hash = { workspace = true } napi = { workspace = true, features = ["async"] } napi-derive = { workspace = true } -[target.'cfg(all(not(target_os = "linux"), not(target_os = "freebsd"), not(target_arch = "arm"), not(target_family = "wasm")))'.dependencies] -mimalloc-safe = { workspace = true, features = ["skip_collect_on_exit"], optional = true } +[target.'cfg(not(any(target_os = "linux", target_os = "freebsd", target_arch = "arm", target_family = "wasm")))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit"] } -[target.'cfg(any(all(target_os = "linux", not(target_arch = "arm")), target_os = "freebsd"))'.dependencies] -mimalloc-safe = { workspace = true, features = ["skip_collect_on_exit", "local_dynamic_tls"], optional = true } +[target.'cfg(all(target_os = "linux", not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls"] } + +[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls", "no_opt_arch"] } [build-dependencies] napi-build = { workspace = true } diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 95e8aa0093298..b3ef5c7df4578 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -31,11 +31,14 @@ rustc-hash = { workspace = true } napi = { workspace = true } napi-derive = { workspace = true } -[target.'cfg(all(not(target_os = "linux"), not(target_os = "freebsd"), not(target_arch = "arm"), not(target_family = "wasm")))'.dependencies] -mimalloc-safe = { workspace = true, features = ["skip_collect_on_exit"], optional = true } +[target.'cfg(not(any(target_os = "linux", target_os = "freebsd", target_arch = "arm", target_family = "wasm")))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit"] } -[target.'cfg(any(all(target_os = "linux", not(target_arch = "arm")), target_os = "freebsd"))'.dependencies] -mimalloc-safe = { workspace = true, features = ["skip_collect_on_exit", "local_dynamic_tls"], optional = true } +[target.'cfg(all(target_os = "linux", not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls"] } + +[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies] +mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls", "no_opt_arch"] } [build-dependencies] napi-build = { workspace = true }