Skip to content

Conversation

cyndyishida
Copy link

The mentioned flag is already both a cc1 & driver flag; however, whether it is respected was tied to either:

  1. Whether it was passed as a cc1 option (Xclang)
  2. or -fmodules accompanying it

This poses a consistency problem where std=c++20 enables the modules feature, independent of other module settings.
This patch resolves this issue by checking for the presence unconditionally & passing it down to cc1 when applicable.

The mentioned flag is already both a cc1 & driver flag; however, whether
it is respected was tied to either:
1. Whether it was passed as a cc1 option (`Xclang`)
2. or `-fmodules` accompanying it

This poses a consistency problem where `std=c++20` enables the modules
feature, independent of other module settings.
This patch resolves this issue by checking for the presence
unconditionally & passing it down to cc1 when applicable.
@cyndyishida cyndyishida requested a review from a team as a code owner July 28, 2025 16:59
@cyndyishida
Copy link
Author

@swift-ci please test

@cyndyishida
Copy link
Author

@swift-ci test macOS

1 similar comment
@cyndyishida
Copy link
Author

@swift-ci test macOS

@cyndyishida cyndyishida merged commit 72027ec into swiftlang:stable/20240723 Jul 31, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant