mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Merge #7132
7132: Stop using beta toolchain in xtask dist r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
aa3ce16f26
1 changed files with 1 additions and 9 deletions
|
@ -63,8 +63,7 @@ fn dist_server() -> Result<()> {
|
||||||
env::set_var("CC", "clang");
|
env::set_var("CC", "clang");
|
||||||
}
|
}
|
||||||
|
|
||||||
let toolchain = toolchain(&target);
|
cmd!("cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --target {target} --release").run()?;
|
||||||
cmd!("cargo +{toolchain} build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --target {target} --release").run()?;
|
|
||||||
|
|
||||||
let suffix = exe_suffix(&target);
|
let suffix = exe_suffix(&target);
|
||||||
let src =
|
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<()> {
|
fn gzip(src_path: &Path, dest_path: &Path) -> Result<()> {
|
||||||
let mut encoder = GzEncoder::new(File::create(dest_path)?, Compression::best());
|
let mut encoder = GzEncoder::new(File::create(dest_path)?, Compression::best());
|
||||||
let mut input = io::BufReader::new(File::open(src_path)?);
|
let mut input = io::BufReader::new(File::open(src_path)?);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue