Skip to content

Commit 6fdcfb0

Browse files
authored
[build] remove support for embedding bitcode in host libraries (swiftlang#32730)
We are more interested in generating bitcode for the standard library. Addresses rdar://64952135
1 parent cbe2dfc commit 6fdcfb0

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -505,24 +505,6 @@ function(add_swift_host_library name)
505505
endif()
506506

507507
if(${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_APPLE_PLATFORMS)
508-
# Include LLVM Bitcode slices for iOS, Watch OS, and Apple TV OS device libraries.
509-
if(SWIFT_EMBED_BITCODE_SECTION)
510-
target_compile_options(${name} PRIVATE
511-
-fembed-bitcode)
512-
target_link_options(${name} PRIVATE
513-
"LINKER:-bitcode_bundle"
514-
"LINKER:-lto_library,${LLVM_LIBRARY_DIR}/libLTO.dylib")
515-
516-
# Please note that using a generator expression to fit this in a single
517-
# target_link_options does not work (at least in CMake 3.15 and 3.16),
518-
# since that seems not to allow the LINKER: prefix to be evaluated (i.e.
519-
# it will be added as-is to the linker parameters)
520-
if(SWIFT_EMBED_BITCODE_SECTION_HIDE_SYMBOLS)
521-
target_link_options(${name} PRIVATE
522-
"LINKER:-bitcode_hide_symbols")
523-
endif()
524-
endif()
525-
526508
target_link_options(${name} PRIVATE
527509
"LINKER:-compatibility_version,1")
528510
if(SWIFT_COMPILER_VERSION)

0 commit comments

Comments
 (0)