]> git.lizzy.rs Git - rust.git/commitdiff
Only install rustc-dev by default on nightly
authorJosh Stone <jistone@redhat.com>
Mon, 7 Oct 2019 16:31:51 +0000 (09:31 -0700)
committerJosh Stone <jistone@redhat.com>
Mon, 7 Oct 2019 20:48:16 +0000 (13:48 -0700)
src/tools/build-manifest/src/main.rs

index d5933789a64982e19e3f40b2faef15150059421a..97e758f9b82386fc291df9bc7bb2d94ee8efeefb 100644 (file)
@@ -474,7 +474,6 @@ fn target_host_combination(&mut self, host: &str, manifest: &Manifest) -> Option
         // 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"),
@@ -483,6 +482,15 @@ fn target_host_combination(&mut self, host: &str, manifest: &Manifest) -> Option
             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![