Skip to content

[6.0][clang][cas] Don't include PGO-related files in the include-tree when they are not used #8599

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

Conversation

akyrtzi
Copy link

@akyrtzi akyrtzi commented Apr 18, 2024

No description provided.

akyrtzi added 3 commits April 18, 2024 09:57
These are not necessary when not performing codegen.

(cherry picked from commit c7eede5)
…ommonInvocationForModuleBuild` into its own function (llvm#88447)

The new function is about clearing out benign codegen options and can be
applied for PCH invocations as well.

(cherry picked from commit 6331024)
… they are not used

PGO options are ignored for PCH invocations and may not be treated as dependencies from the build
system, so don't add them in the include-tree. Otherwise we may get in a situation where such a file
gets updated and an incremental build fails because of mismatched files in the include-tree of the
PCH and the translation unit that uses it.

rdar://125629656
(cherry picked from commit 4ccf152)
@akyrtzi
Copy link
Author

akyrtzi commented Apr 18, 2024

@swift-ci Please test

@bnbarham bnbarham merged commit b0403cd into swiftlang:swift/release/6.0 Apr 19, 2024
@akyrtzi akyrtzi deleted the akyrtzi/pr/ignore-profile-flags-for-pch-release branch April 19, 2024 16:05
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.

3 participants