Skip to content

Build Swift-Testing with WMO #81622

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

etcwilde
Copy link
Contributor

@etcwilde etcwilde commented May 19, 2025

This tells build-script to build Swift-testing with WMO. This results in a faster build products, but is also necessary for configurations using the legacy swift driver, which would emit an invalid swift interface in non-WMO builds.

/home/build-user/build/bootstrap_stage2/swifttesting-linux-x86_64/swift/Testing.swiftinterface:413:2: error: '@_optimize(none)' attribute cannot be applied to stored properties
 411 | }
 412 | @usableFromInline
 413 | @_optimize(none) nonisolated(unsafe) internal var failureBreakpointValue: Swift.Int
     |  `- error: '@_optimize(none)' attribute cannot be applied to stored properties
 414 | @usableFromInline
 415 | @inline(never) internal func failureBreakpoint()

Fixes: rdar://151357567

This tells build-script to build Swift-testing with WMO.
This results in a faster build products, but is also necessary for
configurations using the legacy swift driver, which would emit an
invalid swift interface in non-WMO builds.

Fixes: rdar://151357567
@etcwilde
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@stmontgomery stmontgomery left a comment

Choose a reason for hiding this comment

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

Thanks!

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