Skip to content

Commit c4b9284

Browse files
petrochenkovalexcrichton
authored andcommitted
Default llvm.clean-rebuild to false
1 parent 0d1343e commit c4b9284

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
@@ -638,6 +638,7 @@ opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
638638
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"
639639
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
640640
opt llvm-link-shared 0 "prefer shared linking to LLVM (llvm-config --link-shared)"
641+
opt llvm-clean-rebuild 0 "delete LLVM build directory on rebuild"
641642
opt rpath 1 "build rpaths into rustc itself"
642643
opt stage0-landing-pads 1 "enable landing pads during bootstrap with stage0"
643644
# 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
@@ -241,7 +241,6 @@ impl Config {
241241
pub fn parse(build: &str, file: Option<PathBuf>) -> Config {
242242
let mut config = Config::default();
243243
config.llvm_optimize = true;
244-
config.llvm_clean_rebuild = true;
245244
config.use_jemalloc = true;
246245
config.backtrace = true;
247246
config.rust_optimize = true;
@@ -440,6 +439,7 @@ impl Config {
440439
("LLVM_VERSION_CHECK", self.llvm_version_check),
441440
("LLVM_STATIC_STDCPP", self.llvm_static_stdcpp),
442441
("LLVM_LINK_SHARED", self.llvm_link_shared),
442+
("LLVM_CLEAN_REBUILD", self.llvm_clean_rebuild),
443443
("OPTIMIZE", self.rust_optimize),
444444
("DEBUG_ASSERTIONS", self.rust_debug_assertions),
445445
("DEBUGINFO", self.rust_debuginfo),

src/bootstrap/config.toml.example

+3-5
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@
5454
#targets = "X86;ARM;AArch64;Mips;PowerPC;SystemZ;JSBackend;MSP430;Sparc;NVPTX"
5555

5656
# Delete LLVM build directory on LLVM rebuild.
57-
# This option's default (`true`) is optimized for CI needs, and CI wants to
58-
# perform clean full builds only (possibly accelerated by (s)ccache).
59-
# You may want to override this option for local builds to enable partial LLVM
60-
# rebuilds.
61-
#clean-rebuild = true
57+
# This option defaults to `false` for local development, but CI may want to
58+
# always perform clean full builds (possibly accelerated by (s)ccache).
59+
#clean-rebuild = false
6260

6361
# =============================================================================
6462
# 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)