We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9740c2 + fe0f888 commit fc917b4Copy full SHA for fc917b4
cmake/modules/SwiftSupport.cmake
@@ -133,7 +133,11 @@ function(add_swift_target target)
133
endif()
134
135
if(AST_LIBRARY)
136
- set(emit_library -emit-library)
+ 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
142
if(NOT AST_LIBRARY OR library_kind STREQUAL SHARED)
143
add_custom_command(OUTPUT
0 commit comments