A way to configure always using @argfile for linker invocations #138421
Labels
A-linkers
Area: linkers... you gotta love linkers
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
My scenario is a bit weird.
In my build system, there is a general wrapper that disguises itself as
clang
. Unfortunately it doesn't really propagate the OS error well, so E2BIG won't be caught by rustc.If the linker invocation has grown too big (which is not uncommon because Cargo always passes absolute paths for rustflags), with the general wrapper in my build system, rustc didn't know how to recover and then gave up.
Is there a way to tell rustc always use
@argfile
for linker invocations?Possible solutions
@argfile
for linker invocations.rust/compiler/rustc_codegen_ssa/src/back/command.rs
Lines 140 to 144 in c53af1c
The text was updated successfully, but these errors were encountered: