We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5af87fa + ca5a020 commit 90340a0Copy full SHA for 90340a0
cmake/modules/AddPureSwift.cmake
@@ -28,6 +28,10 @@ function(_add_host_swift_compile_options name)
28
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-string-processing-module-import>")
29
endif()
30
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
+
35
if(SWIFT_ANALYZE_CODE_COVERAGE)
36
set(_cov_flags $<$<COMPILE_LANGUAGE:Swift>:-profile-generate -profile-coverage-mapping>)
37
target_compile_options(${name} PRIVATE ${_cov_flags})
0 commit comments