Conversation
|
r? @TaKO8Ki (rustbot has picked a reviewer for you, use r? to override) |
| -C debug-assertions=val -- explicitly enable the `cfg(debug_assertions)` directive | ||
| -C debuginfo=val -- debug info emission level (0 = no debug info, 1 = line tables only, 2 = full debug info with variable and type information; default: 0) | ||
| -C default-linker-libraries=val -- allow the linker to link its default libraries (default: no) | ||
| -C dlltool=val -- import library generation tool (windows-gnu only) |
There was a problem hiding this comment.
Can you replace (windows-gnu only) with (ignored except when targeting windows-gnu). I think that's more clear.
|
Thanks, @dpaoliello, looks great! What do you think about extending this PR to also stabilize raw-dylibs on x86? Or are there any blockers for that left? Since we'll need an FCP for this anyway, we could take care of x86 too. |
|
Are there any interactions with |
We do: Line 205 in 553ecbe |
Currently no. Given the wording of that argument is
|
There are no more blockers that I know of: I'll merge this with the x86 stabilization for |
|
Closing in favor of stabilizing the entire |
Yeah, that's exactly the plan, see the discussion on #96884. |
Currently we search for -Cself-contained and redirect to a "known" location.
|
As a prerequisite to stabilizing
raw-dylib(tracking: #58713) the-Zdlltoolargument (that permits a user to specify a custom location for the dlltool executable that is used to generate import libraries onwindows-gnutargets) also needs to be stabilized so that users don't need to reach for an unstable option to configure a stable feature.Changes:
-Cdlltool.dlltoolif invoking it failed (we don't need to do this ifdlltoolreturns an error since it prints its path in the error message).-Cdlltool.stderr.stderrasstdoutdoesn't contain anything interesting (and using\nin themessages.ftlfile doesn't work).NOTE: As previously noted (#104218 (comment)) using dlltool within rustc is temporary, but this is not the first time that Rust has added a temporary tool use and argument: #104218 (comment)