Skip to content

Commit 70374db

Browse files
compnerdrokhinip
authored andcommitted
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. Signed-off-by: Kim Topley <[email protected]>
1 parent 82d490b commit 70374db

File tree

2 files changed

+1
-1
lines changed

2 files 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})
File renamed without changes.

0 commit comments

Comments
 (0)