Skip to content

[Dependency Scanning] Ignore -ffile-compilation-dir when Determining Swift Module Variants #79270

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 1 commit into from
Feb 10, 2025

Conversation

qiongsiwu
Copy link
Contributor

Currently, the Swift dependency scanner knows about a fixed list of clang command line options it can ignore when computing a Swift module's cache hash. This PR adds -ffile-compilation-dir since it is not necessary for the Swift module to vary when the only difference in the relevant command line arguments is a different -ffile-compilation-dir.

rdar://144256093

@qiongsiwu
Copy link
Contributor Author

@swift-ci Please smoke test

@artemcm artemcm merged commit 2bb86e4 into swiftlang:main Feb 10, 2025
3 checks passed
qiongsiwu added a commit that referenced this pull request Mar 4, 2025
…ng build. (#79750)

#79270 taught the dependency scanner to ignore `-file-compilation-dir` when caching is
_not_ in effect but did not make the corresponding change when caching is in effect. This PR teaches the scanner to ignore `-file-compliation-dir` when caching is in effect. 

rdar://146025100
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