We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5eb8f82 commit d9d09e8Copy full SHA for d9d09e8
1 file changed
cmake/modules/AddSwiftHostLibrary.cmake
@@ -56,6 +56,13 @@ function(add_swift_host_library name)
56
-emit-module-interface-path;${module_interface_file}
57
>)
58
59
+ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
60
+ target_compile_options(${name} PRIVATE
61
+ $<$<COMPILE_LANGUAGE:Swift>:
62
+ -wmo
63
+ >)
64
+ endif()
65
+
66
# NOTE: workaround for CMake not setting up include flags yet
67
set_target_properties(${name} PROPERTIES
68
INTERFACE_INCLUDE_DIRECTORIES ${module_dir}
0 commit comments