We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2966e02 commit 9c71a4aCopy full SHA for 9c71a4a
CMakeLists.txt
@@ -35,8 +35,9 @@ if(NOT SWIFT_SYSTEM_NAME)
35
endif()
36
37
38
-# Don't enable WMO on Windows due to linker failures
39
-if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
+# Don't enable WMO on Windows hosts due to linker failures, and the use of swift's
+# old driver from build.ps1 when building for windows/android on a windows host.
40
+if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
41
# Enable whole module optimization for release builds & incremental for debug builds
42
if(POLICY CMP0157)
43
set(CMAKE_Swift_COMPILATION_MODE "$<IF:$<CONFIG:Release>,wholemodule,incremental>")
0 commit comments