diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-06-29 00:26:57 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-29 00:26:57 +0900 |
| commit | daa3ceb22bc63aa67c91af8939ac160757cad11e (patch) | |
| tree | f7d8060259eee4ec7899248513c8f7973f7c7bef | |
| parent | de93434cf0db0c883c54645dd974ecfed24bcc26 (diff) | |
| parent | 6aa79a34d87252deaae11e75663e5740a22f14ea (diff) | |
| download | rust-daa3ceb22bc63aa67c91af8939ac160757cad11e.tar.gz rust-daa3ceb22bc63aa67c91af8939ac160757cad11e.zip | |
Rollup merge of #86568 - ehuss:dist-miri-stable, r=Mark-Simulacrum
Don't dist miri or rust-analyzer on stable or beta. This prevents miri and rust-analyzer from being built for "dist" or "install" on the stable/beta channels. It is a nightly-only tool and should not be included. Closes #86286
| -rw-r--r-- | src/bootstrap/dist.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 71ed0af4a7c..19895baf08f 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -1072,6 +1072,12 @@ impl Step for RustAnalyzer { } fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> { + // This prevents rust-analyzer from being built for "dist" or "install" + // on the stable/beta channels. It is a nightly-only tool and should + // not be included. + if !builder.build.unstable_features() { + return None; + } let compiler = self.compiler; let target = self.target; assert!(builder.config.extended); @@ -1171,6 +1177,12 @@ impl Step for Miri { } fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> { + // This prevents miri from being built for "dist" or "install" + // on the stable/beta channels. It is a nightly-only tool and should + // not be included. + if !builder.build.unstable_features() { + return None; + } let compiler = self.compiler; let target = self.target; assert!(builder.config.extended); |
