Avoid warning about the jobserver fd not being open for recursive rustc calls for inline asm

Fixes rust-lang/rustc_codegen_cranelift#1437
This commit is contained in:
bjorn3 2023-12-26 11:25:52 +00:00
parent 39f0dac77d
commit e101a1bbb7

View File

@ -154,6 +154,8 @@ pub(crate) fn compile_global_asm(
}
} else {
let mut child = Command::new(std::env::current_exe().unwrap())
// Avoid a warning about the jobserver fd not being passed
.env_remove("CARGO_MAKEFLAGS")
.arg("--target")
.arg(&config.target)
.arg("--crate-type")