Stop using beta toolchain in xtask dist

This commit is contained in:
Laurențiu Nicola 2021-01-02 09:51:41 +02:00
parent b4a7caedb0
commit 08e609bef0

View 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)?);