-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Add libntdll.a to migw libs #68519
Add libntdll.a to migw libs #68519
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
cc @mati865 -- any thoughts here? :) |
Sorry I should have been more specific. Otherwise LGTM although I'm not official reviewer. I believe @alexcrichton would be the right person here. IMO this fix is significant and safe enough to backport it but the branching is so close 😞 |
My big question is around how much of MinGW are we guaranteeing to provide? We're already providing far more than is necessary to just link code that uses |
I haven't thought it might be coming from static library. After investigation it comes from At this point I'm not sure if this shouldn't be closed in favour of #67429 since user already needs MinGW toolchain to build C libraries. |
I've seen this error as well when building You have to specifically add |
Curiously, Here's a log from
Looks like |
@petrochenkov This is what #67429 wants to change and I hope to finish it next week. |
I would personally prefer to not expand this list over time since, as mentioned, it's unlikely to ever have a limit on its growth. If #67429 can solve the issue for others I think that's the best route to take, if we can. |
I don't have a strong opinion about this, but @alexcrichton's last comment makes sense to me -- if we can find some more general mechanism vs expanding the list infinitely, seems good. One thing is clear, I'm the wrong reviewer. r? @alexcrichton (that ok, @alexcrichton?) |
I'll go ahead and close this given the comments above. Summary: if you want to build crates depending on arbitrary C code - install a MinGW toolchain + perhaps set |
Setting the LIBRARY_PATH does not seem to work. |
Fixes #68518