Skip to content

Add Swift compilation flags to enable Clang's validate-per-build-session module behavior #63975

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

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Feb 28, 2023

Add -validate-clang-modules-once and -clang-build-session-file corresponding to Clang's -fmodules-validate-once-per-build-session and -fbuild-session-file=. Ensure they are propagated to module interface build sub-invocations.

We require these to be first-class Swift options in order to ensure they are propagated to both: ClangImporter and implicit interface build compiler sub-invocations.

Compiler portion of rdar://105982120 (Driver: swiftlang/swift-driver#1302)

…ion module behavior

Add '-validate-clang-modules-once' and '-clang-build-session-file' corresponding to Clang's '-fmodules-validate-once-per-build-session' and '-fbuild-session-file='. Ensure they are propagated to module interface build sub-invocations.

We require these to be first-class Swift options in order to ensure they are propagated to both: ClangImporter and implicit interface build compiler sub-invocations.

Compiler portion of rdar://105982120
@artemcm
Copy link
Contributor Author

artemcm commented Feb 28, 2023

@swift-ci test

@artemcm
Copy link
Contributor Author

artemcm commented Feb 28, 2023

@swift-ci test

@xedin xedin removed their request for review February 28, 2023 22:08
artemcm added a commit to artemcm/swift-driver that referenced this pull request Feb 28, 2023
…ion module behavior

Compiler flags added in: swiftlang/swift#63975

Driver portion of rdar://105982120
@artemcm artemcm merged commit 1600bee into swiftlang:main Mar 1, 2023
@artemcm artemcm deleted the ClangModuleValidatePerSeshhhh branch March 1, 2023 16:40
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.

2 participants