Skip to content

Conversation

akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Sep 2, 2025

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.

… 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.
@Copilot Copilot AI review requested due to automatic review settings September 2, 2025 10:59
Copy link
Contributor

@Copilot Copilot AI left a 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

@akoeplinger
Copy link
Member Author

/backport to release/10.0

Copy link
Contributor

github-actions bot commented Sep 2, 2025

Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/17402363409

@akoeplinger

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@akoeplinger akoeplinger enabled auto-merge (squash) September 2, 2025 14:21
@akoeplinger akoeplinger merged commit 4b8a478 into dotnet:main Sep 2, 2025
163 checks passed
@akoeplinger akoeplinger deleted the fix-maccatalyst-configure branch September 2, 2025 16:12
akoeplinger added a commit to akoeplinger/runtime that referenced this pull request Sep 3, 2025
… 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)
akoeplinger added a commit to akoeplinger/runtime that referenced this pull request Sep 3, 2025
… 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)
akoeplinger added a commit that referenced this pull request Sep 4, 2025
… 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)
akoeplinger added a commit that referenced this pull request Sep 4, 2025
… 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)
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants