Skip to content

Commit c7b9183

Browse files
committed
Enable WMO
1 parent 8bf4cb0 commit c7b9183

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/FoundationEssentials/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android)
6161
endif()
6262

6363
target_compile_options(FoundationEssentials PRIVATE
64+
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-whole-module-optimization>"
6465
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -enable-experimental-feature -Xfrontend VariadicGenerics>"
6566
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -enable-experimental-feature -Xfrontend AccessLevelOnImport>"
6667
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -enable-experimental-feature -Xfrontend StrictConcurrency>"

0 commit comments

Comments
 (0)