Skip to content

Commit 7e67bd4

Browse files
committed
build: allow passing Swift specific link flags
This mirrors the `CMAKE_SWIFT_FLAGS` allowing control over the flags passed to the linker. This is needed until the libraries are built with a newer CMake which supports Swift properly. This enables cross-compiling libdispatch for Android on Windows.
1 parent 52bc6b2 commit 7e67bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/SwiftSupport.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function(add_swift_target target)
99
cmake_parse_arguments(AST "${options}" "${single_value_options}" "${multiple_value_options}" ${ARGN})
1010

1111
set(compile_flags ${CMAKE_SWIFT_FLAGS})
12-
set(link_flags)
12+
set(link_flags ${CMAKE_SWIFT_LINK_FLAGS})
1313

1414
if(AST_TARGET)
1515
list(APPEND compile_flags -target;${AST_TARGET})

0 commit comments

Comments
 (0)