File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -786,15 +786,15 @@ function(_add_swift_library_single target name)
786
786
# Include LLVM Bitcode slices for iOS, Watch OS, and Apple TV OS device libraries.
787
787
if (SWIFT_EMBED_BITCODE_SECTION AND NOT SWIFTLIB_DONT_EMBED_BITCODE )
788
788
if ("${SWIFTLIB_SINGLE_SDK} " STREQUAL "IOS" OR "${SWIFTLIB_SINGLE_SDK} " STREQUAL "TVOS" OR "${SWIFTLIB_SINGLE_SDK} " STREQUAL "WATCHOS" )
789
- set ( SWIFTLIB_SINGLE_C_COMPILE_FLAGS " ${ SWIFTLIB_SINGLE_C_COMPILE_FLAGS} " "-fembed-bitcode" )
790
- set ( SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS " ${ SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS} " "-embed-bitcode" )
791
- set ( SWIFTLIB_SINGLE_LINK_FLAGS " ${ SWIFTLIB_SINGLE_LINK_FLAGS} " "-Xlinker -bitcode_bundle -Xlinker -bitcode_hide_symbols -Xlinker -lto_library -Xlinker ${LLVM_LIBRARY_DIR} /libLTO.dylib" )
789
+ list ( APPEND SWIFTLIB_SINGLE_C_COMPILE_FLAGS "-fembed-bitcode" )
790
+ list ( APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS "-embed-bitcode" )
791
+ list ( APPEND SWIFTLIB_SINGLE_LINK_FLAGS "-Xlinker" " -bitcode_bundle" " -Xlinker" " -bitcode_hide_symbols" " -Xlinker" " -lto_library" " -Xlinker" " ${LLVM_LIBRARY_DIR} /libLTO.dylib" )
792
792
endif ()
793
793
endif ()
794
794
795
795
if (SWIFT_COMPILER_VERSION )
796
796
if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Darwin" )
797
- set ( SWIFTLIB_SINGLE_LINK_FLAGS " ${ SWIFTLIB_SINGLE_LINK_FLAGS} " "-Xlinker" "-current_version" "-Xlinker" "${SWIFT_COMPILER_VERSION} " "-Xlinker" "-compatibility_version" "-Xlinker" "1" )
797
+ list ( APPEND SWIFTLIB_SINGLE_LINK_FLAGS "-Xlinker" "-current_version" "-Xlinker" "${SWIFT_COMPILER_VERSION} " "-Xlinker" "-compatibility_version" "-Xlinker" "1" )
798
798
endif ()
799
799
endif ()
800
800
You can’t perform that action at this time.
0 commit comments