Skip to content

Commit 362aa9a

Browse files
committed
Default llvm.clean-rebuild to false
1 parent 9b8b3b2 commit 362aa9a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

configure

+1
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
437437
opt local-rebuild 0 "assume local-rust matches the current version, for rebuilds; implies local-rust, and is implied if local-rust already matches the current version"
438438
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
439439
opt llvm-link-shared 0 "prefer shared linking to LLVM (llvm-config --link-shared)"
440+
opt llvm-clean-rebuild 0 "delete LLVM build directory on rebuild"
440441
opt rpath 1 "build rpaths into rustc itself"
441442
opt stage0-landing-pads 1 "enable landing pads during bootstrap with stage0"
442443
# This is used by the automation to produce single-target nightlies

src/bootstrap/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ impl Config {
243243
pub fn parse(build: &str, file: Option<PathBuf>) -> Config {
244244
let mut config = Config::default();
245245
config.llvm_optimize = true;
246-
config.llvm_clean_rebuild = true;
247246
config.use_jemalloc = true;
248247
config.backtrace = true;
249248
config.rust_optimize = true;
@@ -443,6 +442,7 @@ impl Config {
443442
("LLVM_VERSION_CHECK", self.llvm_version_check),
444443
("LLVM_STATIC_STDCPP", self.llvm_static_stdcpp),
445444
("LLVM_LINK_SHARED", self.llvm_link_shared),
445+
("LLVM_CLEAN_REBUILD", self.llvm_clean_rebuild),
446446
("OPTIMIZE", self.rust_optimize),
447447
("DEBUG_ASSERTIONS", self.rust_debug_assertions),
448448
("DEBUGINFO", self.rust_debuginfo),

src/bootstrap/config.toml.example

+3-5
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@
6262
#link-jobs = 0
6363

6464
# Delete LLVM build directory on LLVM rebuild.
65-
# This option's default (`true`) is optimized for CI needs, and CI wants to
66-
# perform clean full builds only (possibly accelerated by (s)ccache).
67-
# You may want to override this option for local builds to enable partial LLVM
68-
# rebuilds.
69-
#clean-rebuild = true
65+
# This option defaults to `false` for local development, but CI may want to
66+
# always perform clean full builds (possibly accelerated by (s)ccache).
67+
#clean-rebuild = false
7068

7169
# =============================================================================
7270
# General build configuration options

src/ci/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-quiet-tests"
2828
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-manage-submodules"
2929
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-locked-deps"
3030
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-cargo-openssl-static"
31+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-clean-rebuild"
3132

3233
if [ "$DIST_SRC" = "" ]; then
3334
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-dist-src"

0 commit comments

Comments
 (0)