about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2016-12-30 01:34:06 -0500
committerJorge Aparicio <japaricious@gmail.com>2016-12-30 20:46:19 -0500
commit728ec85e9af04784263acaf2993b2dbf4c07519f (patch)
tree2dd8bf01faba7ec2f0b084e00c3dc55328d54f19 /src/liballoc_jemalloc
parent8aef058329ae2d41475cd549ee394a1adf16c067 (diff)
downloadrust-728ec85e9af04784263acaf2993b2dbf4c07519f.tar.gz
rust-728ec85e9af04784263acaf2993b2dbf4c07519f.zip
sparc64-linux support
Diffstat (limited to 'src/liballoc_jemalloc')
-rw-r--r--src/liballoc_jemalloc/build.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs
index 2bbec9e5fc2..1edcb0b1f24 100644
--- a/src/liballoc_jemalloc/build.rs
+++ b/src/liballoc_jemalloc/build.rs
@@ -151,6 +151,12 @@ fn main() {
     cmd.arg(format!("--host={}", build_helper::gnu_target(&target)));
     cmd.arg(format!("--build={}", build_helper::gnu_target(&host)));
 
+    // for some reason, jemalloc configure doesn't detect this value
+    // automatically for this target
+    if target == "sparc64-unknown-linux-gnu" {
+        cmd.arg("--with-lg-quantum=4");
+    }
+
     run(&mut cmd);
     let mut make = Command::new(build_helper::make(&host));
     make.current_dir(&build_dir)