]> git.lizzy.rs Git - rust.git/commitdiff
Stop using beta toolchain in xtask dist
authorLaurențiu Nicola <lnicola@dend.ro>
Sat, 2 Jan 2021 07:51:41 +0000 (09:51 +0200)
committerLaurențiu Nicola <lnicola@dend.ro>
Sat, 2 Jan 2021 07:51:41 +0000 (09:51 +0200)
xtask/src/dist.rs

index d59b88131a23765c81c5df817076c4b9ac10ac6e..6bc34106b66c4e41825ccadfdb3f04682fd5c9ea 100644 (file)
@@ -63,8 +63,7 @@ fn dist_server() -> Result<()> {
         env::set_var("CC", "clang");
     }
 
-    let toolchain = toolchain(&target);
-    cmd!("cargo +{toolchain} build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --target {target} --release").run()?;
+    cmd!("cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --target {target} --release").run()?;
 
     let suffix = exe_suffix(&target);
     let src =
@@ -118,13 +117,6 @@ fn exe_suffix(target: &str) -> String {
     }
 }
 
-fn toolchain(target: &str) -> String {
-    match target {
-        "aarch64-apple-darwin" => "beta".to_string(),
-        _ => "stable".to_string(),
-    }
-}
-
 fn gzip(src_path: &Path, dest_path: &Path) -> Result<()> {
     let mut encoder = GzEncoder::new(File::create(dest_path)?, Compression::best());
     let mut input = io::BufReader::new(File::open(src_path)?);