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.
_add_swift_host_library_single
1 parent 749dd26 commit 4a93f70Copy full SHA for 4a93f70
cmake/modules/AddSwift.cmake
@@ -722,7 +722,7 @@ function(_add_swift_host_library_single target)
722
# Include LLVM Bitcode slices for iOS, Watch OS, and Apple TV OS device libraries.
723
set(embed_bitcode_arg)
724
if(SWIFT_EMBED_BITCODE_SECTION)
725
- if("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "IOS" OR "${SWIFT_HOST_VARIANT_SDK}" STREQUAL "TVOS" OR "${SWIFT_HOST_VARIANT_SDK}" STREQUAL "WATCHOS")
+ if(SWIFT_HOST_VARIANT_SDK MATCHES "(I|TV|WATCH)OS")
726
list(APPEND SWIFTLIB_SINGLE_C_COMPILE_FLAGS "-fembed-bitcode")
727
set(embed_bitcode_arg EMBED_BITCODE)
728
endif()
0 commit comments