Skip to content

Commit db816f8

Browse files
authored
Merge pull request #5352 from gottesmm/quick_revert
2 parents 647f65e + bfc9f60 commit db816f8

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ option(SWIFT_STDLIB_ASSERTIONS
105105
option(SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER
106106
"Use the host compiler and not the internal clang to build the swift runtime"
107107
FALSE)
108-
option(SWIFT_BUILD_RUNTIME_WITH_HOST_LIBLTO
109-
"Use the host liblto and not the internal liblto to build the swift runtime"
110-
FALSE)
111108

112109
set(SWIFT_ANALYZE_CODE_COVERAGE FALSE CACHE STRING
113110
"Build Swift with code coverage instrumenting enabled [FALSE, NOT-MERGED, MERGED]")

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,10 +578,7 @@ function(_add_swift_library_single target name)
578578
if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "IOS" OR "${SWIFTLIB_SINGLE_SDK}" STREQUAL "TVOS" OR "${SWIFTLIB_SINGLE_SDK}" STREQUAL "WATCHOS")
579579
list(APPEND SWIFTLIB_SINGLE_C_COMPILE_FLAGS "-fembed-bitcode")
580580
list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS "-embed-bitcode")
581-
list(APPEND SWIFTLIB_SINGLE_LINK_FLAGS "-Xlinker" "-bitcode_bundle" "-Xlinker" "-bitcode_hide_symbols")
582-
if (NOT SWIFT_BUILD_RUNTIME_WITH_HOST_LIBLTO)
583-
list(APPEND SWIFTLIB_SINGLE_LINK_FLAGS "-Xlinker" "-lto_library" "-Xlinker" "${LLVM_LIBRARY_DIR}/libLTO.dylib")
584-
endif()
581+
list(APPEND SWIFTLIB_SINGLE_LINK_FLAGS "-Xlinker" "-bitcode_bundle" "-Xlinker" "-bitcode_hide_symbols" "-Xlinker" "-lto_library" "-Xlinker" "${LLVM_LIBRARY_DIR}/libLTO.dylib")
585582
endif()
586583
endif()
587584

0 commit comments

Comments
 (0)