Skip to content

Commit 90340a0

Browse files
authored
Merge pull request swiftlang#79918 from rintaro/cmake-no-emit-module-separately
[CMake] '-no-emit-module-separately-wmo' for swift modules
2 parents 5af87fa + ca5a020 commit 90340a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/AddPureSwift.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ function(_add_host_swift_compile_options name)
2828
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-string-processing-module-import>")
2929
endif()
3030

31+
# Emitting module seprately doesn't give us any benefit.
32+
target_compile_options(${name} PRIVATE
33+
"$<$<COMPILE_LANGUAGE:Swift>:-no-emit-module-separately-wmo>")
34+
3135
if(SWIFT_ANALYZE_CODE_COVERAGE)
3236
set(_cov_flags $<$<COMPILE_LANGUAGE:Swift>:-profile-generate -profile-coverage-mapping>)
3337
target_compile_options(${name} PRIVATE ${_cov_flags})

0 commit comments

Comments
 (0)