`Triple::getMacOSXVersion` returns 28 on latest macOS 27 beta
Open
Beginner friendly
llvm:support
platform:macos
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
The latest beta uses Darwin 27 which conflicts with the existing logic in `llvm/lib/TargetParser/Triple.cpp:1532`. This causes the test `HostTest.getMacOSHostVersion` to fail among other problems.
Contributor guide
Research direction
Start in llvm/lib/TargetParser/Triple.cpp at line 1532 and inspect the logic used by Triple::getMacOSXVersion for Darwin versions. Run the HostTest.getMacOSHostVersion test, adjust the handling so Darwin 27 reports the correct macOS beta version, and confirm that the test passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100