Skip to content

Commit 4a93f70

Browse files
committed
build: use a regular expression in _add_swift_host_library_single
1 parent 749dd26 commit 4a93f70

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
@@ -722,7 +722,7 @@ function(_add_swift_host_library_single target)
722722
# Include LLVM Bitcode slices for iOS, Watch OS, and Apple TV OS device libraries.
723723
set(embed_bitcode_arg)
724724
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")
725+
if(SWIFT_HOST_VARIANT_SDK MATCHES "(I|TV|WATCH)OS")
726726
list(APPEND SWIFTLIB_SINGLE_C_COMPILE_FLAGS "-fembed-bitcode")
727727
set(embed_bitcode_arg EMBED_BITCODE)
728728
endif()

0 commit comments

Comments
 (0)