diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-12-26 11:25:52 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-12-26 11:25:52 +0000 |
| commit | e101a1bbb765496e0cf7d460519c5cdf875baa92 (patch) | |
| tree | fe36e1337f30373f46faebd55345f85f8cb17b0c | |
| parent | 39f0dac77d12dfa4d84eb832ca9143b37453a2bc (diff) | |
| download | rust-e101a1bbb765496e0cf7d460519c5cdf875baa92.tar.gz rust-e101a1bbb765496e0cf7d460519c5cdf875baa92.zip | |
Avoid warning about the jobserver fd not being open for recursive rustc calls for inline asm
Fixes rust-lang/rustc_codegen_cranelift#1437
| -rw-r--r-- | src/global_asm.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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") |
