You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Through a lot of confused debugging, I found out that the following part of the documentation for RUSTC_WRAPPER is not, in general, correct:
Instead of simply running rustc, Cargo will execute this specified wrapper instead, passing as its command-line arguments the rustc invocation, with the first argument being rustc.
The first argument will in fact be the value of the RUSTC env var, if that is set. I don't know if this is intended, it is certainly not what I expected.
The text was updated successfully, but these errors were encountered:
The first argument passed to the wrapper is the path to the actual rustc.
So it's only the env var part that is wrong/misleading. (But this also probably means we cannot change behavior to make this always pass rustc as 2nd argument, which is a bummer. I guess the current behavior is actually intended then.)
Through a lot of confused debugging, I found out that the following part of the documentation for
RUSTC_WRAPPER
is not, in general, correct:The first argument will in fact be the value of the RUSTC env var, if that is set. I don't know if this is intended, it is certainly not what I expected.
The text was updated successfully, but these errors were encountered: