Skip to content

Commit df0a2e4

Browse files
committed
Add CloudABI to the list of systems on which we stub out alloc_jemalloc.
The official jemalloc sources don't build cleanly on CloudABI yet, for the reason that some of its tracing frameworks try to access the global filesystem namespace, which CloudABI doesn't provide. Always make use of the malloc implementation used by the C library, which already happens to be jemalloc with some tiny build fixes.
1 parent 35681fb commit df0a2e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/liballoc_jemalloc/build.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ fn main() {
2929
// for targets like emscripten, even if we don't use it.
3030
let target = env::var("TARGET").expect("TARGET was not set");
3131
let host = env::var("HOST").expect("HOST was not set");
32-
if target.contains("rumprun") || target.contains("bitrig") || target.contains("openbsd") ||
33-
target.contains("msvc") || target.contains("emscripten") || target.contains("fuchsia") ||
34-
target.contains("redox") || target.contains("wasm32") {
32+
if target.contains("bitrig") || target.contains("cloudabi") || target.contains("emscripten") ||
33+
target.contains("fuchsia") || target.contains("msvc") || target.contains("openbsd") ||
34+
target.contains("redox") || target.contains("rumprun") || target.contains("wasm32") {
3535
println!("cargo:rustc-cfg=dummy_jemalloc");
3636
return;
3737
}

0 commit comments

Comments
 (0)