We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b03881 + bca73ec commit 5271726Copy full SHA for 5271726
1 file changed
src/main.rs
@@ -37,10 +37,11 @@ extern crate tokio_rustls;
37
extern crate toml;
38
extern crate trust_dns_resolver;
39
40
-#[cfg(not(target_env = "msvc"))]
+// Only use jemalloc on x86_64 - it has issues on ARM64 when cross-compiled with zig
41
+#[cfg(all(not(target_env = "msvc"), target_arch = "x86_64"))]
42
use jemallocator::Jemalloc;
43
44
45
#[global_allocator]
46
static GLOBAL: Jemalloc = Jemalloc;
47
0 commit comments