Skip to content

Commit 5a88c7e

Browse files
committed
rustbuild: Skip saving analysis when disabled
1 parent e31e264 commit 5a88c7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/dist.rs

+4
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ pub fn rust_src_location(build: &Build) -> PathBuf {
311311

312312
/// Creates a tarball of save-analysis metadata, if available.
313313
pub fn analysis(build: &Build, compiler: &Compiler, target: &str) {
314+
if !build.config.rust_save_analysis {
315+
return
316+
}
317+
314318
println!("Dist analysis");
315319

316320
if compiler.host != build.config.build {

0 commit comments

Comments
 (0)