Skip to content

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

Conversation

keith
Copy link
Member

@keith keith commented Jul 19, 2023

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

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
@keith
Copy link
Member Author

keith commented Jul 19, 2023

@swift-ci please test

@MaxDesiatov MaxDesiatov requested a review from artemcm July 19, 2023 07:38
@MaxDesiatov
Copy link
Contributor

@swift-ci smoke test

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@keith keith merged commit bcb4b1a into swiftlang:main Jul 19, 2023
@keith
Copy link
Member Author

keith commented Jul 19, 2023

@keith keith deleted the ks/remove-incremental-when-using-whole-module-optimization branch July 19, 2023 17:16
@keith
Copy link
Member Author

keith commented Jul 19, 2023

ah it looks like llbuild needs a similar change, I will submit PRs there

@keith
Copy link
Member Author

keith commented Jul 19, 2023

@keith
Copy link
Member Author

keith commented Jul 19, 2023

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

@neonichu
Copy link
Contributor

Yah, we switched away from using llbuild's built-in Swift command in main

@doozMen
Copy link

doozMen commented Sep 9, 2023

When I run with swift 5.9 but in my package.swift I have 5.7 it still outputs remark: Incremental compilation has been disabled: it is not compatible with whole module optimization. Does this mean it is not fixed in 5.9?

@finagolfin
Copy link
Member

Does this mean it is not fixed in 5.9?

It sounds like you're picking up an old Swift in your path somewhere. Try running with -v verbose mode and see which Swift compiler it's using. If you're sure it's 5.9 or later, let us know.

@kaishin
Copy link
Member

kaishin commented Oct 31, 2023

It sounds like you're picking up an old Swift in your path somewhere. Try running with -v verbose mode and see which Swift compiler it's using. If you're sure it's 5.9 or later, let us know.

I am still seeing this with Swift 5.9.

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.

7 participants