-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[LLVM][TargetParser] Handle -msys targets the same as -cygwin. #136817
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
Conversation
This would require a change to a test; I think the main relevant tests for this class are in some unittest - see If msys2 is moving towards using cygwin triples instead of msys, that's probably good. But it would be good to mention, just for context, how widespread and acknowledged these triples are. IIRC very little of the upstream GNU tools mention msys(2) directly - IIRC support for such triples is patched in, in many of the packages? (If that's still the case, that's not necessarily a blocker for this change, but it may give valuable contextual info. Even if not handled upstream there, the msys2 ecosystem is a large and nontrivial establishment in itself, so it's definitely not a blocker for accepting it here, I'd say.) I'm not sure who would be the most authoritative reviewer of this area, I think @MaskRay may be one. |
FYI there is a tracking issue for moving closer to Cygwin: msys2/MSYS2-packages#3012 |
I was looking for a test, but didn't find one looking under llvm/tests. |
3af974e
to
5fd03f6
Compare
✅ With the latest revision this PR passed the C/C++ code formatter. |
Notably, the msys triple is generated by the config.guess in this repo via llvm/modules/GetHostTriple.cmake: llvm-project/llvm/cmake/config.guess Lines 809 to 811 in da8f2d5
|
MSYS2 uses i686-pc-msys and x86_64-pc-msys as target, and is a fork of Cygwin. There's an effort underway to try to switch as much as possible to use -pc-cygwin targets, but the -msys target will be hanging around for the forseeable future.
5fd03f6
to
5faae16
Compare
Oh, good point. (And that bit is also available in upstream |
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 reasonable to me, and doesn't seem controversial.
I'll leave it open for 24h after approving, in case someone else (across all timezones) want to chime in still - I'll try to merge it after that if I remember (or @mati865 also should be able to).
I don't have write access (never asked for it though). |
Oh, sorry, I misremembered then! |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/16564 Here is the relevant piece of the build log for the reference
|
No worries, thank you for handling it. |
MSYS2 uses i686-pc-msys and x86_64-pc-msys as target, and is a fork of Cygwin. There's an effort underway to try to switch as much as possible to use -pc-cygwin targets, but the -msys target will be hanging around for the forseeable future.