Skip to content

Commit 5f2b002

Browse files
committed
Build Swift-Testing with WMO
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
1 parent abcc134 commit 5f2b002

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/swift_build_support/swift_build_support/products/swift_testing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def build(self, host_target):
112112

113113
self.cmake_options.define('CMAKE_BUILD_TYPE', self.args.build_variant)
114114

115+
self.cmake_options.define('CMAKE_Swift_COMPILATION_MODE', 'wholemodule')
116+
115117
# FIXME: If we build macros for the builder, specify the path.
116118
self.cmake_options.define('SwiftTesting_MACRO', 'NO')
117119

0 commit comments

Comments
 (0)