Skip to content

Commit 2898477

Browse files
committed
build: additional section_magic conditional fix
The variable for the TARGET_LIBRARY option should be SWIFTLIB_SINGLE_TARGET_LIBRARY.
1 parent 3c40271 commit 2898477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ function(_add_swift_library_single target name)
719719
# On platforms that use ELF binaries we add markers for metadata sections in
720720
# the shared libraries using these object files. This wouldn't be necessary
721721
# if the link was done by the swift binary: rdar://problem/19007002
722-
if(SWIFTLIB_TARGET_LIBRARY AND
722+
if(SWIFTLIB_SINGLE_TARGET_LIBRARY AND
723723
"${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_OBJECT_FORMAT}" STREQUAL "ELF")
724724
if("${libkind}" STREQUAL "SHARED")
725725
set(arch_subdir "${SWIFTLIB_DIR}/${SWIFTLIB_SINGLE_SUBDIR}")

0 commit comments

Comments
 (0)