From e101a1bbb765496e0cf7d460519c5cdf875baa92 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 26 Dec 2023 11:25:52 +0000 Subject: Avoid warning about the jobserver fd not being open for recursive rustc calls for inline asm Fixes rust-lang/rustc_codegen_cranelift#1437 --- src/global_asm.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/global_asm.rs b/src/global_asm.rs index b14007f4e52..f5ecfc7a513 100644 --- a/src/global_asm.rs +++ b/src/global_asm.rs @@ -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") -- cgit 1.4.1-3-g733a5