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
Consider consolidating the msvc and gnullvm target import libs #2018
Comments
So we could support gnu/gnullvm/msvc all with a single lib per target? |
You mean per arch? Technically yes if we use legacy import lib format (like the one used by gnu). |
Interesting. As In the short term we could just remove the orphaned gnullvm targets, publish a release, and then consolidate them somehow. |
Tool to generate gnullvm was merged with gnu (so we are mostly back to how I originally made them 😄) so it generates both gnullvm and gnu target crates. |
Technically, that's possible, but I was more thinking about two libs per cpu-type: gnu/msvc or gnu/gnullvm.
|
Does this imply binutils actually supports short import libs, provided the archive members are named a different way? |
Binutils have sort of supported short import libs for quite some time, it just had multiple bugs. So this would require some testing with oldest Binutils version that |
This code incorrectly assumes libs always point to ".dlls" when they can also point to .cpl, .ax, etc. We may want to reach out and get this fixed. |
For But yes, I would expect we have to keep supporting libs for some time to come if only for |
I don't have contacts within Binutils so feel free to reach out to them. |
Sounds like the tooling's not quite there yet. Can we close this issue? |
Binutils issue prevents windows-rs from using single import lib for each arch but reducing to 2 import libs per arch is doable (gnu + gnullvm/msvc) if @glandium wants to continue working on this. |
I'm not sure I'm ready to ditch the msvc tooling entirely if that's what is required. It's clunky but it is probably the only one the Visual Studio team officially supports for our internal customers. |
Do you mean you want to keep generating import libraries in target crates There is also option for using |
Part of my reluctance has to do with the current experience for generating the gnu/llvm libs using mingw which I have not been able to run successfully and is not very Windows-friendly. Agreed that LLVM itself is part of the toolchain so I don't have a problem with that in itself. Happy to continue to make progress here - just a little cautious I suppose. 😉 |
Closing for now. Feel free to keep the conversation going - love the improvements thus far! |
Originally posted by @kennykerr in #2016 (comment)
There are two ways to go about this:
An advantage of the latter is that it allows the generation of all the import libraries through a single command (vs. at least 4 right now, 3 of which are with 3 different Visual Studio environments).
The difference between the gnullvm and msvc import libraries are outlined in #1964 (comment).
The text was updated successfully, but these errors were encountered: