-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stabilize -Cdlltool #109575
Stabilize -Cdlltool #109575
Conversation
r? @TaKO8Ki (rustbot has picked a reviewer for you, use r? to override) |
@@ -5,6 +5,7 @@ | |||
-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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-Zdlltool
argument (that permits a user to specify a custom location for the dlltool executable that is used to generate import libraries onwindows-gnu
targets) also needs to be stabilized so that users don't need to reach for an unstable option to configure a stable feature.Changes:
-Cdlltool
.dlltool
if invoking it failed (we don't need to do this ifdlltool
returns an error since it prints its path in the error message).-Cdlltool
.stderr
.stderr
asstdout
doesn't contain anything interesting (and using\n
in themessages.ftl
file 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)