]> git.lizzy.rs Git - rust.git/commitdiff
more s/llvm-tools/llvm-tools-preview/
authorJorge Aparicio <jorge@japaric.io>
Sat, 30 Jun 2018 19:40:36 +0000 (14:40 -0500)
committerJorge Aparicio <jorge@japaric.io>
Sat, 30 Jun 2018 19:40:36 +0000 (14:40 -0500)
src/tools/build-manifest/src/main.rs

index 35fc2182313c95de4b4a65076a3741f4e7473038..6add6495a9351b8cd3b456bec976db9e28ab75b3 100644 (file)
@@ -298,11 +298,11 @@ fn build_manifest(&mut self) -> Manifest {
         self.package("rls-preview", &mut manifest.pkg, HOSTS);
         self.package("rustfmt-preview", &mut manifest.pkg, HOSTS);
         self.package("rust-analysis", &mut manifest.pkg, TARGETS);
-        self.package("llvm-tools", &mut manifest.pkg, TARGETS);
+        self.package("llvm-tools-preview", &mut manifest.pkg, TARGETS);
 
         let rls_present = manifest.pkg.contains_key("rls-preview");
         let rustfmt_present = manifest.pkg.contains_key("rustfmt-preview");
-        let llvm_tools_present = manifest.pkg.contains_key("llvm-tools");
+        let llvm_tools_present = manifest.pkg.contains_key("llvm-tools-preview");
 
         if rls_present {
             manifest.renames.insert("rls".to_owned(), Rename { to: "rls-preview".to_owned() });
@@ -359,7 +359,7 @@ fn build_manifest(&mut self) -> Manifest {
             }
             if llvm_tools_present {
                 extensions.push(Component {
-                    pkg: "llvm-tools".to_string(),
+                    pkg: "llvm-tools-preview".to_string(),
                     target: host.to_string(),
                 });
             }
@@ -486,7 +486,7 @@ fn cached_version(&self, component: &str) -> &Option<String> {
             &self.rls_version
         } else if component == "rustfmt" || component == "rustfmt-preview" {
             &self.rustfmt_version
-        } else if component == "llvm-tools" {
+        } else if component == "llvm-tools" || component == "llvm-tools-preview" {
             &self.llvm_tools_version
         } else {
             &self.rust_version
@@ -500,7 +500,7 @@ fn cached_git_commit_hash(&self, component: &str) -> &Option<String> {
             &self.rls_git_commit_hash
         } else if component == "rustfmt" || component == "rustfmt-preview" {
             &self.rustfmt_git_commit_hash
-        } else if component == "llvm-tools" {
+        } else if component == "llvm-tools" || component == "llvm-tools-preview" {
             &self.llvm_tools_git_commit_hash
         } else {
             &self.rust_git_commit_hash