Skip to content

[Driver] Restrict flags to dependency scanner under explicit module b…#2148

Merged
cachemeifyoucan merged 1 commit into
swiftlang:mainfrom
cachemeifyoucan:eng/PR-177651825
Jun 8, 2026
Merged

[Driver] Restrict flags to dependency scanner under explicit module b…#2148
cachemeifyoucan merged 1 commit into
swiftlang:mainfrom
cachemeifyoucan:eng/PR-177651825

Conversation

@cachemeifyoucan

Copy link
Copy Markdown
Contributor

…uild

In explicit module build mode, -module-cache-path, -validate-clang-modules-once, and -clang-build-session-file are only meaningful to the dependency scanner; other frontend jobs build modules from the resolved dependency graph and shouldn't consult the module cache or share a clang build session. Gate these flags so they are only forwarded to the .scanDependencies job when explicit module build is enabled.

rdar://177651825

@cachemeifyoucan

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

…uild

In explicit module build mode, `-module-cache-path`,
`-validate-clang-modules-once`, and `-clang-build-session-file` are only
meaningful to the dependency scanner; other frontend jobs build modules
from the resolved dependency graph and shouldn't consult the module
cache or share a clang build session. Gate these flags so they are only
forwarded to the `.scanDependencies` job when explicit module build is
enabled.

rdar://177651825
@cachemeifyoucan

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@cachemeifyoucan

Copy link
Copy Markdown
Contributor Author

@swift-ci please test windows platform

1 similar comment
@cachemeifyoucan

Copy link
Copy Markdown
Contributor Author

@swift-ci please test windows platform

@cachemeifyoucan cachemeifyoucan merged commit 6dc8103 into swiftlang:main Jun 8, 2026
26 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.

2 participants