Skip to content

Commit 36193c3

Browse files
committed
build: remove LINK_FLAGS from _add_swift_host_library_single
1 parent d1d7009 commit 36193c3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ endfunction()
680680
# [ARCHITECTURE architecture]
681681
# [LLVM_LINK_COMPONENTS comp1 ...]
682682
# [SWIFT_COMPILE_FLAGS flag1...]
683-
# [LINK_FLAGS flag1...]
684683
# [FILE_DEPENDS target1 ...]
685684
# INSTALL_IN_COMPONENT comp
686685
# source1 [source2 source3 ...])
@@ -709,9 +708,6 @@ endfunction()
709708
# SWIFT_COMPILE_FLAGS
710709
# Extra compile flags (Swift).
711710
#
712-
# LINK_FLAGS
713-
# Extra linker flags.
714-
#
715711
# FILE_DEPENDS
716712
# Additional files this library depends on.
717713
#
@@ -738,7 +734,6 @@ function(_add_swift_host_library_single target name)
738734
GYB_SOURCES
739735
INCORPORATE_OBJECT_LIBRARIES
740736
INCORPORATE_OBJECT_LIBRARIES_SHARED_ONLY
741-
LINK_FLAGS
742737
LLVM_LINK_COMPONENTS
743738
SWIFT_COMPILE_FLAGS)
744739

@@ -991,7 +986,7 @@ function(_add_swift_host_library_single target name)
991986
# Collect compile and link flags for the static and non-static targets.
992987
# Don't set PROPERTY COMPILE_FLAGS or LINK_FLAGS directly.
993988
set(c_compile_flags ${SWIFTLIB_SINGLE_C_COMPILE_FLAGS})
994-
set(link_flags ${SWIFTLIB_SINGLE_LINK_FLAGS})
989+
set(link_flags)
995990

996991
set(library_search_subdir "${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_LIB_SUBDIR}")
997992
set(library_search_directories

0 commit comments

Comments
 (0)