Skip to content

Commit f290fc3

Browse files
authored
[Fuchsia] Disable building runtimes with LTO (#126306)
Temporarily disable LTO'd runtimes, while we investigate an issue building Fuchsia with LTO.
1 parent a854c26 commit f290fc3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

clang/cmake/caches/Fuchsia-stage2.cmake

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unkn
190190
set(RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "")
191191

192192
# Enable FatLTO for Linux and baremetal runtimes
193-
set(RUNTIMES_${target}_LLVM_ENABLE_LTO ON CACHE BOOL "")
194-
set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO ON CACHE BOOL "")
193+
set(RUNTIMES_${target}_LLVM_ENABLE_LTO OFF CACHE BOOL "")
194+
set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO OFF CACHE BOOL "")
195195

196196
# Use .build-id link.
197197
list(APPEND RUNTIME_BUILD_ID_LINK "${target}")
@@ -276,8 +276,8 @@ if(FUCHSIA_SDK)
276276
set(RUNTIMES_${target}+asan+noexcept_LIBCXX_ENABLE_EXCEPTIONS OFF CACHE BOOL "")
277277

278278
# Enable FatLTO for Fuchsia runtimes
279-
set(RUNTIMES_${target}_LLVM_ENABLE_LTO ON CACHE BOOL "")
280-
set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO ON CACHE BOOL "")
279+
set(RUNTIMES_${target}_LLVM_ENABLE_LTO OFF CACHE BOOL "")
280+
set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO OFF CACHE BOOL "")
281281

282282
# Use .build-id link.
283283
list(APPEND RUNTIME_BUILD_ID_LINK "${target}")
@@ -378,8 +378,8 @@ foreach(target armv6m-none-eabi;armv7m-none-eabi;armv7em-none-eabi;armv8m.main-n
378378
set(RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "")
379379

380380
# Enable FatLTO for baremetal runtimes
381-
set(RUNTIMES_${target}_LLVM_ENABLE_LTO ON CACHE BOOL "")
382-
set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO ON CACHE BOOL "")
381+
set(RUNTIMES_${target}_LLVM_ENABLE_LTO OFF CACHE BOOL "")
382+
set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO OFF CACHE BOOL "")
383383
endforeach()
384384

385385
foreach(target riscv32-unknown-elf)
@@ -433,8 +433,8 @@ foreach(target riscv32-unknown-elf)
433433
set(RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "")
434434

435435
# Enable FatLTO for baremetal runtimes
436-
set(RUNTIMES_${target}_LLVM_ENABLE_LTO ON CACHE BOOL "")
437-
set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO ON CACHE BOOL "")
436+
set(RUNTIMES_${target}_LLVM_ENABLE_LTO OFF CACHE BOOL "")
437+
set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO OFF CACHE BOOL "")
438438
endforeach()
439439

440440
set(LLVM_BUILTIN_TARGETS "${BUILTIN_TARGETS}" CACHE STRING "")

0 commit comments

Comments
 (0)