@@ -545,7 +545,6 @@ opt verify-install 1 "verify installed binaries work"
545
545
# This is used by the automation to produce single-target nightlies
546
546
opt dist-host-only 0 " only install bins for the host architecture"
547
547
opt inject-std-version 1 " inject the current compiler version of libstd into programs"
548
- opt jemalloc 1 " build liballoc with jemalloc"
549
548
opt llvm-version-check 1 " don't check if the LLVM version is supported, build anyway"
550
549
551
550
valopt localstatedir " /var/lib" " local state directory"
@@ -562,6 +561,7 @@ valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
562
561
# (others are conditionally saved).
563
562
opt_nosave manage-submodules 1 " let the build manage the git submodules"
564
563
opt_nosave clang 0 " prefer clang to gcc for building the runtime"
564
+ opt_nosave jemalloc 1 " build liballoc with jemalloc"
565
565
566
566
valopt_nosave prefix " /usr/local" " set installation prefix"
567
567
valopt_nosave local-rust-root " /usr/local" " set prefix for local rust binary"
@@ -775,7 +775,7 @@ if [ $CFG_OSTYPE = unknown-bitrig ]
775
775
then
776
776
step_msg " on Bitrig, forcing use of clang, disabling jemalloc"
777
777
CFG_ENABLE_CLANG=1
778
- CFG_ENABLE_JEMALLOC=0
778
+ CFG_DISABLE_JEMALLOC=1
779
779
fi
780
780
781
781
if [ -z " $CFG_ENABLE_CLANG " -a -z " $CFG_GCC " ]
@@ -828,6 +828,12 @@ then
828
828
putvar CFG_ENABLE_CLANG
829
829
fi
830
830
831
+ # Same with jemalloc. save the setting here.
832
+ if [ ! -z " $CFG_DISABLE_JEMALLOC " ]
833
+ then
834
+ putvar CFG_DISABLE_JEMALLOC
835
+ fi
836
+
831
837
if [ ! -z " $CFG_LLVM_ROOT " -a -z " $CFG_DISABLE_LLVM_VERSION_CHECK " -a -e " $CFG_LLVM_ROOT /bin/llvm-config" ]
832
838
then
833
839
step_msg " using custom LLVM at $CFG_LLVM_ROOT "
0 commit comments