Skip to content

Commit

Permalink
Only install rustc-dev by default on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Oct 7, 2019
1 parent bd4e9d5 commit 2dcf2f0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/tools/build-manifest/src/main.rs
Expand Up @@ -474,7 +474,6 @@ impl Builder {
// and so is rust-mingw if it's available for the target.
components.extend(vec![
host_component("rustc"),
host_component("rustc-dev"),
host_component("rust-std"),
host_component("cargo"),
host_component("rust-docs"),
Expand All @@ -483,6 +482,15 @@ impl Builder {
components.push(host_component("rust-mingw"));
}

// The compiler libraries are not stable for end users, but `rustc-dev` was only recently
// split out of `rust-std`. We'll include it by default as a transition for nightly users,
// but ship it as an optional component on the beta and stable channels.
if self.rust_release == "nightly" {
components.push(host_component("rustc-dev"));
} else {
extensions.push(host_component("rustc-dev"));
}

// Tools are always present in the manifest,
// but might be marked as unavailable if they weren't built.
extensions.extend(vec![
Expand Down

0 comments on commit 2dcf2f0

Please sign in to comment.