rustc: Respect CC variable at runtime#18529
Conversation
This really should be passed in either from sniffing CFG_CC during configure, or with a --cc-program flag to the configure script, but an escape hatch is required for platforms with nothing called `cc' on PATH.
|
You can already override the default with the |
|
Plausible. I think that docs in this area are definitely lacking though (this is the second time I've gone digging in rustc to implement an escape hatch for something I couldn't find the docs for) |
|
I'm also a little hesitant to use this as we one day may move to something like LLVM's linker or to invoking |
|
tbc, the only reason I didn't close this is because I think the current system isn't very sustainable; not because I think this is necessarily a good/the right solution. My biggest gripe is that the underlying mechanism is very opaque- and as end user trying to set |
|
So, what's the call here? |
|
@richo for now I think we're going to want to keep For now I'm going to close this to help clear out @bors's queue, but we can certainly revisit this in the future if necessary! |
…espace_in_merge_match_arms Improve selection handling for the `merge_match_arms` assist
This really should be passed in either from sniffing CFG_CC during
configure, or with a --cc-program flag to the configure script, but an
escape hatch is required for platforms with nothing called `cc' on PATH.