Skip to content

Commit e497089

Browse files
authored
[build] don't embed bitcode for target libs built for simulators (#32871)
At the same time rework condition so that it is more amenable to code searches. Addresses rdar://65501878
1 parent 7ec46f0 commit e497089

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,9 @@ function(_add_swift_target_library_single target name)
12511251
endif()
12521252
# Include LLVM Bitcode slices for iOS, Watch OS, and Apple TV OS device libraries.
12531253
if(SWIFT_EMBED_BITCODE_SECTION AND NOT SWIFTLIB_SINGLE_DONT_EMBED_BITCODE)
1254-
if(${SWIFTLIB_SINGLE_SDK} MATCHES "(I|TV|WATCH)OS")
1254+
if(${SWIFTLIB_SINGLE_SDK} STREQUAL "IOS" OR
1255+
${SWIFTLIB_SINGLE_SDK} STREQUAL "TVOS" OR
1256+
${SWIFTLIB_SINGLE_SDK} STREQUAL "WATCHOS")
12551257
# Please note that using a generator expression to fit
12561258
# this in a single target_link_options does not work
12571259
# (at least in CMake 3.15 and 3.16),

0 commit comments

Comments
 (0)