Skip to content

build: add an option to control WMO #1705

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
May 26, 2023
Merged

Conversation

compnerd
Copy link
Member

WMO requires the new swift-driver which requires an early swift-driver or a host toolchain that has Swift. Since the only platform that guarantees this currently is Darwin, use a conditional value for the option, defaulting to NO for most other targets. This should repair the build on Windows.

@compnerd compnerd requested a review from ahoppen as a code owner May 25, 2023 16:44
@compnerd
Copy link
Member Author

@swift-ci please test

WMO requires the new swift-driver which requires an early swift-driver
or a host toolchain that has Swift.  Since the only platform that
guarantees this currently is Darwin, use a conditional value for the
option, defaulting to `NO` for most other targets.  This should repair
the build on Windows.
Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

Thanks @compnerd! I'll set this by default in swiftlang/swift#66043 as well (since we assume there's a host toolchain there).

@compnerd
Copy link
Member Author

@swift-ci please test

1 similar comment
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test macOS platform

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@compnerd compnerd merged commit 3d059c4 into swiftlang:main May 26, 2023
@compnerd compnerd deleted the disable branch May 26, 2023 14:17
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