mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Stop using beta toolchain in xtask dist
This commit is contained in:
parent
b4a7caedb0
commit
08e609bef0
1 changed files with 1 additions and 9 deletions
|
@ -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)?);
|
||||
|
|
Loading…
Reference in a new issue