Skip to content

[6.0 🍒][Dependency Scanning] Apply -clang-scanner-module-cache-path to header Clang module dependencies #74874

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

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Jul 1, 2024

  • Explanation: Clang module dependencies of (Bridging) headers incorrectly did not respect -clang-scanner-module-cache-path, and when it was set, were always output into the scanner cache directory. Whereas depending clients expected them in the non-scanner cache directory. This discrepancy caused missing .pcm compilation failures. This change fixes the discrepancy.

  • Scope: This change only affects Explicit Module Builds (opt-in) which also opt-in to using a separate -clang-scanner-module-cache-path setting. On such builds, it affects the ability to compile modular dependencies of Bridging Headers.

  • Issue/Radar: rdar://117024665

  • Original PR: [Dependency Scanning] Apply -clang-scanner-module-cache-path to header Clang module dependencies #74872

  • Risk: Low. Previously, this configuration resulted in build failures 100% of the time when building modular dependencies of bridging headers with -clang-scanner-module-cache-path. Now such builds will succeed. Other dependency path code-paths are not affected.

  • Testing: Automated test added to the compiler test suite.

  • Reviewers: @owenv, @cachemeifyoucan

…der Clang module dependencies

Resolves rdar://117024665
@artemcm artemcm added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Jul 1, 2024
@artemcm artemcm requested a review from a team as a code owner July 1, 2024 21:43
@artemcm
Copy link
Contributor Author

artemcm commented Jul 1, 2024

@swift-ci test

@artemcm artemcm requested a review from airspeedswift July 1, 2024 22:37
@artemcm artemcm merged commit 09b8b08 into swiftlang:release/6.0 Jul 2, 2024
5 checks passed
@artemcm artemcm deleted the 60SeparateScanCacheForHeaderDepsToo branch July 2, 2024 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants