Skip to content

Commit 5766d52

Browse files
committed
Remove --enable-save-analysis configure flag
1 parent 223b280 commit 5766d52

File tree

9 files changed

+6
-22
lines changed

9 files changed

+6
-22
lines changed

configure

-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ opt dist-host-only 0 "only install bins for the host architecture"
445445
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
446446
opt llvm-version-check 1 "check if the LLVM version is supported, build anyway"
447447
opt codegen-tests 1 "run the src/test/codegen tests"
448-
opt save-analysis 0 "save API analysis data"
449448
opt option-checking 1 "complain about unrecognized options in this configure script"
450449
opt ninja 0 "build LLVM using the Ninja generator (for MSVC, requires building in the correct environment)"
451450
opt locked-deps 0 "force Cargo.lock to be up to date"

rls

Submodule rls updated from 88fc39b to 016cbc5

src/bootstrap/config.rs

-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ pub struct Config {
7474
pub rustc_default_ar: Option<String>,
7575
pub rust_optimize_tests: bool,
7676
pub rust_debuginfo_tests: bool,
77-
pub rust_save_analysis: bool,
7877
pub rust_dist_src: bool,
7978

8079
pub build: String,
@@ -226,7 +225,6 @@ struct Rust {
226225
optimize_tests: Option<bool>,
227226
debuginfo_tests: Option<bool>,
228227
codegen_tests: Option<bool>,
229-
save_analysis: Option<bool>,
230228
}
231229

232230
/// TOML representation of how each build target is configured.
@@ -352,7 +350,6 @@ impl Config {
352350
set(&mut config.rust_optimize_tests, rust.optimize_tests);
353351
set(&mut config.rust_debuginfo_tests, rust.debuginfo_tests);
354352
set(&mut config.codegen_tests, rust.codegen_tests);
355-
set(&mut config.rust_save_analysis, rust.save_analysis);
356353
set(&mut config.rust_rpath, rust.rpath);
357354
set(&mut config.debug_jemalloc, rust.debug_jemalloc);
358355
set(&mut config.use_jemalloc, rust.use_jemalloc);
@@ -460,7 +457,6 @@ impl Config {
460457
("LOCAL_REBUILD", self.local_rebuild),
461458
("NINJA", self.ninja),
462459
("CODEGEN_TESTS", self.codegen_tests),
463-
("SAVE_ANALYSIS", self.rust_save_analysis),
464460
("LOCKED_DEPS", self.locked_deps),
465461
("VENDOR", self.vendor),
466462
("FULL_BOOTSTRAP", self.full_bootstrap),

src/bootstrap/config.toml.example

-3
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,6 @@
234234
# saying that the FileCheck executable is missing, you may want to disable this.
235235
#codegen-tests = true
236236

237-
# Flag indicating whether the API analysis data should be saved.
238-
#save-analysis = false
239-
240237
# =============================================================================
241238
# Options for specific targets
242239
#

src/bootstrap/dist.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,12 @@ pub fn rust_src_location(build: &Build) -> PathBuf {
315315

316316
/// Creates a tarball of save-analysis metadata, if available.
317317
pub fn analysis(build: &Build, compiler: &Compiler, target: &str) {
318-
if !build.config.rust_save_analysis {
319-
return
320-
}
321-
318+
assert!(build.config.extended);
322319
println!("Dist analysis");
323320

324321
if compiler.host != build.config.build {
325322
println!("\tskipping, not a build host");
326-
return
323+
return;
327324
}
328325

329326
// Package save-analysis from stage1 if not doing a full bootstrap, as the
@@ -595,6 +592,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) {
595592
}
596593

597594
pub fn rls(build: &Build, stage: u32, target: &str) {
595+
assert!(build.config.extended);
598596
println!("Dist RLS stage{} ({})", stage, target);
599597
let compiler = Compiler::new(stage, &build.config.build);
600598

src/bootstrap/install.rs

-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ pub fn install(build: &Build, stage: u32, host: &str) {
5555
&docdir, &libdir, &mandir, &empty_dir);
5656
}
5757

58-
if build.config.rust_save_analysis {
59-
install_sh(&build, "analysis", "rust-analysis", stage, host, &prefix,
60-
&docdir, &libdir, &mandir, &empty_dir);
61-
}
62-
6358
install_sh(&build, "rustc", "rustc", stage, host, &prefix,
6459
&docdir, &libdir, &mandir, &empty_dir);
6560
t!(fs::remove_dir_all(&empty_dir));

src/bootstrap/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ impl Build {
545545
.env(format!("CFLAGS_{}", target), self.cflags(target).join(" "));
546546
}
547547

548-
if self.config.rust_save_analysis && compiler.is_final_stage(self) {
548+
if self.config.extended && compiler.is_final_stage(self) {
549549
cargo.env("RUSTC_SAVE_ANALYSIS", "api".to_string());
550550
}
551551

src/ci/run.sh

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ fi
4242
if [ "$DEPLOY$DEPLOY_ALT" != "" ]; then
4343
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=nightly"
4444
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"
45-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-save-analysis"
4645

4746
if [ "$NO_LLVM_ASSERTIONS" = "1" ]; then
4847
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"

0 commit comments

Comments
 (0)