File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -719,7 +719,7 @@ function(_add_swift_library_single target name)
719
719
# On platforms that use ELF binaries we add markers for metadata sections in
720
720
# the shared libraries using these object files. This wouldn't be necessary
721
721
# 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
723
723
"${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK} _OBJECT_FORMAT}" STREQUAL "ELF" )
724
724
if ("${libkind} " STREQUAL "SHARED" )
725
725
set (arch_subdir "${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} " )
@@ -874,7 +874,8 @@ function(_add_swift_library_single target name)
874
874
875
875
# The section metadata objects are generated sources, and we need to tell CMake
876
876
# not to expect to find them prior to their generation.
877
- if ("${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK} _OBJECT_FORMAT}" STREQUAL "ELF" )
877
+ if (SWIFTLIB_SINGLE_TARGET_LIBRARY AND
878
+ "${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK} _OBJECT_FORMAT}" STREQUAL "ELF" )
878
879
if ("${libkind} " STREQUAL "SHARED" )
879
880
set_source_files_properties (${SWIFT_SECTIONS_OBJECT_BEGIN} PROPERTIES GENERATED 1 )
880
881
set_source_files_properties (${SWIFT_SECTIONS_OBJECT_END} PROPERTIES GENERATED 1 )
You can’t perform that action at this time.
0 commit comments