Skip to content

Commit 7f4b406

Browse files
committed
build: remove INCORPORATE_OBJECT_LIBRARIES_SHARED_ONLY from _add_swift_host_library_single
1 parent b70b2b1 commit 7f4b406

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,6 @@ function(_add_swift_host_library_single target name)
732732
set(SWIFTLIB_SINGLE_multiple_parameter_options
733733
FILE_DEPENDS
734734
GYB_SOURCES
735-
INCORPORATE_OBJECT_LIBRARIES_SHARED_ONLY
736735
LLVM_LINK_COMPONENTS
737736
SWIFT_COMPILE_FLAGS)
738737

@@ -871,22 +870,9 @@ function(_add_swift_host_library_single target name)
871870
return()
872871
endif()
873872

874-
set(SWIFTLIB_INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS_SHARED_ONLY)
875-
foreach(object_library ${SWIFTLIB_SINGLE_INCORPORATE_OBJECT_LIBRARIES_SHARED_ONLY})
876-
list(APPEND SWIFTLIB_INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS_SHARED_ONLY
877-
$<TARGET_OBJECTS:${object_library}${VARIANT_SUFFIX}>)
878-
endforeach()
879-
880-
set(INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS)
881-
if(${libkind} STREQUAL "SHARED")
882-
list(APPEND INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS
883-
${SWIFTLIB_INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS_SHARED_ONLY})
884-
endif()
885-
886873
add_library("${target}" ${libkind}
887874
${SWIFTLIB_SINGLE_SOURCES}
888-
${SWIFTLIB_SINGLE_EXTERNAL_SOURCES}
889-
${INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS})
875+
${SWIFTLIB_SINGLE_EXTERNAL_SOURCES})
890876
_set_target_prefix_and_suffix("${target}" "${libkind}" "${SWIFTLIB_SINGLE_SDK}")
891877

892878
if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "WINDOWS")

0 commit comments

Comments
 (0)