-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[maccatalyst] Check for -Wno-overriding-option for compatibility with clang in Xcode 16.3+ #119260
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
… clang in Xcode 16.3+ llvm/llvm-project@1c66d08 renamed the option `-Wno-overriding-t-option` to `-Wno-overriding-option`. This caused some configure time checks in CMake to fail because of hitting an unknown compiler option.
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.
Pull Request Overview
This PR addresses a compatibility issue with newer versions of clang in Xcode 16.3+ where the compiler flag -Wno-overriding-t-option
was renamed to -Wno-overriding-option
. The changes implement dynamic detection of which flag the compiler supports to maintain compatibility across different clang versions.
Key changes:
- Remove hardcoded
-Wno-overriding-t-option
flag from mono.proj - Add compiler capability detection in CMake files to check for both flag variants
- Implement fallback logic to use the appropriate flag based on compiler support
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/mono/mono.proj | Removes hardcoded -Wno-overriding-t-option flag from MacCatalyst build configuration |
src/mono/CMakeLists.txt | Adds compiler flag detection logic for MacCatalyst builds with fallback support |
eng/native/configurecompiler.cmake | Updates compiler configuration to dynamically detect and use the correct overriding option flag |
/backport to release/10.0 |
Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/17402363409 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
… clang in Xcode 16.3+ (dotnet#119260) llvm/llvm-project@1c66d08 renamed the option `-Wno-overriding-t-option` to `-Wno-overriding-option`. This caused some configure time checks in CMake to fail because of hitting an unknown compiler option. (cherry picked from commit 4b8a478)
… clang in Xcode 16.3+ (dotnet#119260) llvm/llvm-project@1c66d08 renamed the option `-Wno-overriding-t-option` to `-Wno-overriding-option`. This caused some configure time checks in CMake to fail because of hitting an unknown compiler option. (cherry picked from commit 4b8a478) (cherry picked from commit f08548f)
… clang in Xcode 16.3+ (#119260) (#119301) llvm/llvm-project@1c66d08 renamed the option `-Wno-overriding-t-option` to `-Wno-overriding-option`. This caused some configure time checks in CMake to fail because of hitting an unknown compiler option. (cherry picked from commit 4b8a478)
… clang in Xcode 16.3+ (#119260) (#119303) llvm/llvm-project@1c66d08 renamed the option `-Wno-overriding-t-option` to `-Wno-overriding-option`. This caused some configure time checks in CMake to fail because of hitting an unknown compiler option. (cherry picked from commit 4b8a478) (cherry picked from commit f08548f)
llvm/llvm-project@1c66d08 renamed the option
-Wno-overriding-t-option
to-Wno-overriding-option
. This caused some configure time checks in CMake to fail because of hitting an unknown compiler option.This fixes the MacCatalyst build with Xcode 16.3 which is currently being rolled out on the macOS images by Azure Pipelines.