diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2016-10-27 11:41:56 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2016-12-09 08:37:42 -1000 |
| commit | c49ba058a0d61b929975f47daf25f19dd22de9c6 (patch) | |
| tree | fe9edd3f30292327882e50e7dd063165eaf21529 /src/bootstrap/bin | |
| parent | bd148d220e976330672c9f5b5a9720701079b8e8 (diff) | |
| download | rust-c49ba058a0d61b929975f47daf25f19dd22de9c6.tar.gz rust-c49ba058a0d61b929975f47daf25f19dd22de9c6.zip | |
Create tar balls of save-analysis-api metadata for the standard libraries as part of `make dist`.
Diffstat (limited to 'src/bootstrap/bin')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 879eca60cc7..2f674a311fe 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -125,6 +125,11 @@ fn main() { cmd.arg("-C").arg(format!("codegen-units={}", s)); } + // Emit save-analysis info. + if env::var("RUSTC_SAVE_ANALYSIS") == Ok("api".to_string()) { + cmd.arg("-Zsave-analysis-api"); + } + // Dealing with rpath here is a little special, so let's go into some // detail. First off, `-rpath` is a linker option on Unix platforms // which adds to the runtime dynamic loader path when looking for |
