We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcc9c33 + 7be4324 commit 45bf03aCopy full SHA for 45bf03a
cmake/modules/AddSwift.cmake
@@ -647,8 +647,7 @@ function(_add_swift_library_single target name)
647
648
# The section metadata objects are generated sources, and we need to tell CMake
649
# not to expect to find them prior to their generation.
650
- if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "LINUX" OR
651
- "${SWIFTLIB_SINGLE_SDK}" STREQUAL "FREEBSD")
+ if("${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_OBJECT_FORMAT}" STREQUAL "ELF")
652
if("${libkind}" STREQUAL "SHARED")
653
set_source_files_properties(${SWIFT_SECTIONS_OBJECT_BEGIN} PROPERTIES GENERATED 1)
654
set_source_files_properties(${SWIFT_SECTIONS_OBJECT_END} PROPERTIES GENERATED 1)
0 commit comments