Skip to content

Conversation

@kkysen
Copy link
Contributor

@kkysen kkysen commented Dec 8, 2025

If $RUSTC_WRAPPER is set, rustc invocations will be add an extra "rustc" arg, which trips up the arg parsing code with an unexpected arg.

@kkysen kkysen force-pushed the kkysen/refactor-extra-rustc-arg branch from dd72341 to 3ac7ccc Compare December 8, 2025 12:00
@kkysen kkysen requested a review from ahomescu December 8, 2025 21:51
@fw-immunant
Copy link
Contributor

Out of curiosity, in which situations is RUSTC_WRAPPER set?

Copy link
Contributor Author

@kkysen kkysen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, in which situations is RUSTC_WRAPPER set?

It's set by tools like sccache, but also c2rust-analyze and c2rust-instrument so that they can intercept rustc invocations through cargo. I think tools like clippy work this way, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants