Skip to content

Commit 3058eed

Browse files
committed
Rollup merge of rust-lang#23990 - dhuseby:bitrig_fixing_jemalloc_config, r=alexcrichton
Until I can figure out the correct way to configure jemalloc for Bitrig, this patch will correctly disable it. All other build targets remain unchanged.
2 parents 17e83e3 + 787c6cd commit 3058eed

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

configure

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ opt verify-install 1 "verify installed binaries work"
545545
# This is used by the automation to produce single-target nightlies
546546
opt dist-host-only 0 "only install bins for the host architecture"
547547
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
548-
opt jemalloc 1 "build liballoc with jemalloc"
549548
opt llvm-version-check 1 "don't check if the LLVM version is supported, build anyway"
550549

551550
valopt localstatedir "/var/lib" "local state directory"
@@ -562,6 +561,7 @@ valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
562561
# (others are conditionally saved).
563562
opt_nosave manage-submodules 1 "let the build manage the git submodules"
564563
opt_nosave clang 0 "prefer clang to gcc for building the runtime"
564+
opt_nosave jemalloc 1 "build liballoc with jemalloc"
565565

566566
valopt_nosave prefix "/usr/local" "set installation prefix"
567567
valopt_nosave local-rust-root "/usr/local" "set prefix for local rust binary"
@@ -782,7 +782,7 @@ if [ $CFG_OSTYPE = unknown-bitrig ]
782782
then
783783
step_msg "on Bitrig, forcing use of clang, disabling jemalloc"
784784
CFG_ENABLE_CLANG=1
785-
CFG_ENABLE_JEMALLOC=0
785+
CFG_DISABLE_JEMALLOC=1
786786
fi
787787

788788
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
@@ -835,6 +835,12 @@ then
835835
putvar CFG_ENABLE_CLANG
836836
fi
837837

838+
# Same with jemalloc. save the setting here.
839+
if [ ! -z "$CFG_DISABLE_JEMALLOC" ]
840+
then
841+
putvar CFG_DISABLE_JEMALLOC
842+
fi
843+
838844
if [ ! -z "$CFG_LLVM_ROOT" -a -z "$CFG_DISABLE_LLVM_VERSION_CHECK" -a -e "$CFG_LLVM_ROOT/bin/llvm-config" ]
839845
then
840846
step_msg "using custom LLVM at $CFG_LLVM_ROOT"

0 commit comments

Comments
 (0)