Skip to content

Commit eb1c44b

Browse files
committed
rustbuild: Remove --enable-llvm-clean-rebuild
This was intended for bots back in the day where we'd persist caches of LLVM builds across runs, but nowadays we don't do that on any of the bots so this option is no longer necessary
1 parent 489b792 commit eb1c44b

File tree

5 files changed

+0
-14
lines changed

5 files changed

+0
-14
lines changed

Diff for: configure

-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@ 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"
441440
opt rpath 1 "build rpaths into rustc itself"
442441
opt stage0-landing-pads 1 "enable landing pads during bootstrap with stage0"
443442
# This is used by the automation to produce single-target nightlies

Diff for: src/bootstrap/config.rs

-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ pub struct Config {
6262
pub llvm_targets: Option<String>,
6363
pub llvm_experimental_targets: Option<String>,
6464
pub llvm_link_jobs: Option<u32>,
65-
pub llvm_clean_rebuild: bool,
6665

6766
// rust codegen options
6867
pub rust_optimize: bool,
@@ -203,7 +202,6 @@ struct Llvm {
203202
targets: Option<String>,
204203
experimental_targets: Option<String>,
205204
link_jobs: Option<u32>,
206-
clean_rebuild: Option<bool>,
207205
}
208206

209207
#[derive(Deserialize, Default, Clone)]
@@ -352,7 +350,6 @@ impl Config {
352350
set(&mut config.llvm_release_debuginfo, llvm.release_debuginfo);
353351
set(&mut config.llvm_version_check, llvm.version_check);
354352
set(&mut config.llvm_static_stdcpp, llvm.static_libstdcpp);
355-
set(&mut config.llvm_clean_rebuild, llvm.clean_rebuild);
356353
config.llvm_targets = llvm.targets.clone();
357354
config.llvm_experimental_targets = llvm.experimental_targets.clone();
358355
config.llvm_link_jobs = llvm.link_jobs;
@@ -477,7 +474,6 @@ impl Config {
477474
("LLVM_VERSION_CHECK", self.llvm_version_check),
478475
("LLVM_STATIC_STDCPP", self.llvm_static_stdcpp),
479476
("LLVM_LINK_SHARED", self.llvm_link_shared),
480-
("LLVM_CLEAN_REBUILD", self.llvm_clean_rebuild),
481477
("OPTIMIZE", self.rust_optimize),
482478
("DEBUG_ASSERTIONS", self.rust_debug_assertions),
483479
("DEBUGINFO", self.rust_debuginfo),

Diff for: src/bootstrap/config.toml.example

-5
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@
6969
# controlled by rustbuild's -j parameter.
7070
#link-jobs = 0
7171

72-
# Delete LLVM build directory on LLVM rebuild.
73-
# This option defaults to `false` for local development, but CI may want to
74-
# always perform clean full builds (possibly accelerated by (s)ccache).
75-
#clean-rebuild = false
76-
7772
# =============================================================================
7873
# General build configuration options
7974
# =============================================================================

Diff for: src/bootstrap/native.rs

-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ impl Step for Llvm {
8080
return
8181
}
8282
}
83-
if build.config.llvm_clean_rebuild {
84-
drop(fs::remove_dir_all(&out_dir));
85-
}
8683

8784
let _folder = build.fold_output(|| "llvm");
8885
println!("Building LLVM for {}", target);

Diff for: src/ci/run.sh

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-sccache"
3131
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-manage-submodules"
3232
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-locked-deps"
3333
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-cargo-openssl-static"
34-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-clean-rebuild"
3534

3635
if [ "$DIST_SRC" = "" ]; then
3736
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-dist-src"

0 commit comments

Comments
 (0)