Skip to content

Commit 90c4f5c

Browse files
committed
Ensure that the Android build on a windows host doesn't turn on WMO yet
The windows host builds with the old driver for now, so it doesn't yet support wmo
1 parent e505ccf commit 90c4f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if(NOT SWIFT_SYSTEM_NAME)
4242
endif()
4343

4444
# Don't enable WMO on Windows due to linker failures
45-
if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
45+
if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
4646
# Enable whole module optimization for release builds & incremental for debug builds
4747
if(POLICY CMP0157)
4848
set(CMAKE_Swift_COMPILATION_MODE "$<IF:$<CONFIG:Release>,wholemodule,incremental>")

0 commit comments

Comments
 (0)