-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Remove -incremental when using -whole-module-optimization #6728
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
Remove -incremental when using -whole-module-optimization #6728
Conversation
Passing both results in noisy remarks when building from the command line like: ``` remark: Incremental compilation has been disabled: it is not compatible with whole module optimization ``` https://forums.swift.org/t/incremental-compilation-has-been-disabled-it-is-not-compatible-with-whole-module-optimization/66092
@swift-ci please test |
@swift-ci smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
hrm seems like this isn't a problem in the release branch https://github.com/apple/swift-package-manager/blob/release/5.9/Sources/Build/BuildDescription/SwiftTargetBuildDescription.swift#L543 |
ah it looks like llbuild needs a similar change, I will submit PRs there |
so at HEAD this change is enough but on 5.9 this change isn't needed and the llbuild change is enough. I submitted the llbuild change in both places either way |
Yah, we switched away from using llbuild's built-in Swift command in |
When I run with swift 5.9 but in my package.swift I have 5.7 it still outputs |
It sounds like you're picking up an old Swift in your path somewhere. Try running with |
I am still seeing this with Swift 5.9. |
Passing both results in noisy remarks when building from the command line like:
https://forums.swift.org/t/incremental-compilation-has-been-disabled-it-is-not-compatible-with-whole-module-optimization/66092