We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 701699c + 8bb2aff commit 93a24b3Copy full SHA for 93a24b3
cmake/modules/SwiftSupport.cmake
@@ -133,7 +133,11 @@ function(add_swift_target target)
133
file(WRITE ${rsp_file} ${rsp_text})
134
135
if(AST_LIBRARY)
136
+ if(CMAKE_SYSTEM_NAME STREQUAL Windows OR CMAKE_SYSTEM_NAME STREQUAL Darwin)
137
set(emit_library -emit-library)
138
+ else()
139
+ set(emit_library -emit-library -Xlinker -soname -Xlinker ${AST_OUTPUT})
140
+ endif()
141
endif()
142
if(NOT AST_LIBRARY OR library_kind STREQUAL SHARED)
143
add_custom_command(OUTPUT
0 commit comments