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 a15b58d + d485b3f commit d124c05Copy full SHA for d124c05
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