mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-16 04:43:23 +00:00
- Fixes https://github.com/termux/termux-packages/issues/25122
- Based loosely on Arch Linux package: c9feb24ebe/PKGBUILD
23 lines
1.4 KiB
Diff
23 lines
1.4 KiB
Diff
Prevents this build error when targeting 32-bit ARM:
|
|
failed to resolve: use of unresolved module or unlinked crate `mimalloc_safe`
|
|
|
|
--- a/apps/oxlint/Cargo.toml
|
|
+++ b/apps/oxlint/Cargo.toml
|
|
@@ -41,13 +41,13 @@ serde_json = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
tracing-subscriber = { workspace = true, features = [] } # Omit the `regex` feature
|
|
|
|
-[target.'cfg(not(any(target_os = "linux", target_os = "freebsd", target_arch = "arm", target_family = "wasm")))'.dependencies]
|
|
+[target.'cfg(not(any(target_os = "android", target_os = "freebsd", target_arch = "arm", target_family = "wasm")))'.dependencies]
|
|
mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit"] }
|
|
|
|
-[target.'cfg(all(target_os = "linux", not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies]
|
|
+[target.'cfg(all(target_os = "android", 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]
|
|
+[target.'cfg(all(target_os = "android", any(target_arch = "arm", target_arch = "aarch64")))'.dependencies]
|
|
mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit", "local_dynamic_tls", "no_opt_arch"] }
|
|
|
|
[dev-dependencies]
|