Skip to content

Commit d5e2e23

Browse files
committed
Misc cleanups
1 parent bc67321 commit d5e2e23

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

‎build_system/abi_cafe.rs‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ pub(crate) fn run(
3636

3737
eprintln!("Running abi-cafe");
3838

39-
let pairs = ["rustc_calls_cgclif","cgclif_calls_rustc","cgclif_calls_cc","cc_calls_cgclif"];
40-
let pairs =
39+
let pairs:&[_] =
4140
ifcfg!(not(any(target_os = "macos", all(target_os = "windows", target_env = "msvc")))){
42-
&pairs[..]
41+
&["rustc_calls_cgclif","cgclif_calls_rustc","cgclif_calls_cc","cc_calls_cgclif"]
4342
}else{
44-
&pairs[..2]
43+
&["rustc_calls_cgclif","cgclif_calls_rustc"]
4544
};
4645

4746
letmut cmd = ABI_CAFE.run(bootstrap_host_compiler, dirs);

‎build_system/build_backend.rs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pub(crate) fn build_backend(
1818
letmut cmd = CG_CLIF.build(&bootstrap_host_compiler, dirs);
1919

2020
letmut rustflags = rustflags_from_env("RUSTFLAGS");
21-
2221
rustflags.push("-Zallow-features=rustc_private".to_owned());
22+
rustflags_to_cmd_env(&mut cmd,"RUSTFLAGS",&rustflags);
2323

2424
if env::var("CG_CLIF_EXPENSIVE_CHECKS").is_ok(){
2525
// Enabling debug assertions implicitly enables the clif ir verifier
@@ -33,8 +33,6 @@ pub(crate) fn build_backend(
3333

3434
cmd.arg("--release");
3535

36-
rustflags_to_cmd_env(&mut cmd,"RUSTFLAGS",&rustflags);
37-
3836
eprintln!("[BUILD] rustc_codegen_cranelift");
3937
crate::utils::spawn_and_wait(cmd);
4038

0 commit comments

Comments
 (0)