-
Notifications
You must be signed in to change notification settings - Fork 513
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 support for x86_64-pc-windows-gnullvm
target
#1846
Conversation
Hey, thanks for the contribution! Generally, it's helpful to start with an issue to explain the problem you're trying to solve before opening a PR. For example, I'm not familiar with this target or why these changes are necessary. Also, we'd need to add CI tests to validate it works if this is something we're going to support. |
Sorry, I thought it will be more obvious. Not so long time ago, new Tier 3 Trying to build anything that uses
Given the fact it's Tier 3 target it cannot be used out of the box and needs to be built using unstable |
Sounds good - thanks for the explanation. @rylev thoughts? |
(See below.) |
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.
This looks fine, but I think we should break this out into its own target.
That will let us generate newer more efficient libs (#1787) and avoid mixing non-LLVM libs with LLVM tooling, something that will undoubtedly break sooner/later. It will also give us a natural spot to put any LLVM-specific linker flags, tricks, etc. in the future.
Recommended action: Restore existing *_gnu crates and create *_gnullvm targets.
Future action: Restore and retarget #1787 to shiny new _gnullvm target crate
Also, make sure we have open issues for outstanding work. |
Thank you for the review. I want to clarify some things;
They are smaller but otherwise work almost the same way.
Binutils output legacy import libraries format (sometimes called long import libraries) while LLVM outputs short import libraries (just like MSVC does).
That is true, LLVM can benefit from multiple things that are supported by MSVC but not by Binutils.
Could you elaborate a bit? Should I open some kind of tracking issue? |
FYI @sivadeilra @dpaoliello for recurring (lack of) |
Yes, clearly this work is more involved or at least more contentious than initially suspected. It would be helpful to have an issue that clearly states what these two PRs aim to solve here so we can discuss and agree on a solution before proceeding to PRs. Oh and by outstanding work I meant whatever other issues might take longer to land, such as the CI validation of Tier 3 targets. |
Opened #1881 |
This is Tier 3 target but lack of
windows-rs
support is one of the blockers for testing it in real world. Given the changes here are minimal I think there should be no problem with them.