Skip to content

Commit 59a1b11

Browse files
committed
fix build with --all-features
1 parent 0b4d1bf commit 59a1b11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/miri/src/bin/miri.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ extern crate rustc_span;
2727
/// above, instead of via Cargo as you'd normally do. This is currently needed for LTO due to
2828
/// https://github.com/rust-lang/cc-rs/issues/1613.
2929
#[cfg(feature = "jemalloc")]
30+
// Make sure `--all-features` works: only Linux and macOS actually use jemalloc, and not on arm32.
31+
#[cfg(all(
32+
any(target_os = "linux", target_os = "macos"),
33+
any(target_arch = "x86_64", target_arch = "x86", target_arch = "aarch64"),
34+
))]
3035
extern crate tikv_jemalloc_sys as _;
3136

3237
mod log;

0 commit comments

Comments
 (0)