]> git.lizzy.rs Git - rust.git/commitdiff
Add CloudABI to the list of systems on which we stub out alloc_jemalloc.
authorEd Schouten <ed@nuxi.nl>
Sat, 30 Dec 2017 09:00:35 +0000 (10:00 +0100)
committerEd Schouten <ed@nuxi.nl>
Sat, 30 Dec 2017 09:00:35 +0000 (10:00 +0100)
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.

src/liballoc_jemalloc/build.rs

index 649cd6e8e85fb41b895b9c00222d2640eb545105..440c9fbf2f66ff4317fbeb73600c4d919af16090 100644 (file)
@@ -29,9 +29,9 @@ fn main() {
     // for targets like emscripten, even if we don't use it.
     let target = env::var("TARGET").expect("TARGET was not set");
     let host = env::var("HOST").expect("HOST was not set");
-    if target.contains("rumprun") || target.contains("bitrig") || target.contains("openbsd") ||
-       target.contains("msvc") || target.contains("emscripten") || target.contains("fuchsia") ||
-       target.contains("redox") || target.contains("wasm32") {
+    if target.contains("bitrig") || target.contains("cloudabi") || target.contains("emscripten") ||
+       target.contains("fuchsia") || target.contains("msvc") || target.contains("openbsd") ||
+       target.contains("redox") || target.contains("rumprun") || target.contains("wasm32") {
         println!("cargo:rustc-cfg=dummy_jemalloc");
         return;
     }