Skip to content

Commit

Permalink
Enable jemalloc on i686-unknown-linux-musl
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Sep 19, 2022
1 parent bc438f4 commit 6b29b68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ faccess = "0.2.4"
# FIXME: Re-enable jemalloc on macOS
# jemalloc is currently disabled on macOS due to a bug in jemalloc in combination with macOS
# Catalina. See https://github.com/sharkdp/fd/issues/498 for details.
[target.'cfg(all(not(windows), not(target_os = "android"), not(target_os = "macos"), not(target_os = "freebsd"), not(all(target_env = "musl", target_pointer_width = "32")), not(target_arch = "riscv64")))'.dependencies]
[target.'cfg(all(not(windows), not(target_os = "android"), not(target_os = "macos"), not(target_os = "freebsd"), not(all(target_env = "musl", target_arch = "arm")), not(target_arch = "riscv64")))'.dependencies]
jemallocator = {version = "0.5.0", optional = true}

[dev-dependencies]
Expand Down
5 changes: 5 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[target.i686-unknown-linux-musl.env]
passthrough = [
"je_cv_pthread_getname_np=no",
"je_cv_gcc_builtin_ffsl=no",
]
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use crate::regex_helper::{pattern_has_uppercase_char, pattern_matches_strings_wi
not(target_os = "android"),
not(target_os = "macos"),
not(target_os = "freebsd"),
not(all(target_env = "musl", target_pointer_width = "32")),
not(all(target_env = "musl", target_arch = "arm")),
not(target_arch = "riscv64"),
feature = "use-jemalloc"
))]
Expand Down

0 comments on commit 6b29b68

Please sign in to comment.