@@ -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 "" )
383383endforeach ()
384384
385385foreach (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 "" )
438438endforeach ()
439439
440440set (LLVM_BUILTIN_TARGETS "${BUILTIN_TARGETS} " CACHE STRING "" )
0 commit comments