-
Notifications
You must be signed in to change notification settings - Fork 454
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
Mirror clang's link stage on Windows. #866
Conversation
Hm, unsure about the implementation of this. Since we're forcing this library to be included, we need to be careful that it doesn't override anything the user has implemented themselves. clang does this using |
3bf80d6
to
688ed03
Compare
|
This could really use a test to make sure it works and isn't accidentally broken in the future. |
Also cc @thomcc as using |
That MSRV bump doesn't bother me, but I would really like someone to double-check this works. My recollection is that there's some issue with using rustc-link-arg like this. |
Hmm, that would probably be undesirable... Two points in the context. One should keep in mind that the suggested modification affects only "fringe" use cases, an MSVC target with |
688ed03
to
52d0b05
Compare
Putting together a test case was challenging because one has to mix object files generated by cl and clang in the same executable, with the former smuggling in |
Fixes problem discussed in rust-lang#811. [Also deduplicate clang --target argument on Windows, because it's passed later on in the "// Target flags" section.]
Re-based just in case. |
Fixes problem discussed in #811.