@@ -190,8 +190,8 @@ foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unkn
190
190
set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "" )
191
191
192
192
# 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 "" )
195
195
196
196
# Use .build-id link.
197
197
list (APPEND RUNTIME_BUILD_ID_LINK "${target} " )
@@ -276,8 +276,8 @@ if(FUCHSIA_SDK)
276
276
set (RUNTIMES_${target}+asan+noexcept_LIBCXX_ENABLE_EXCEPTIONS OFF CACHE BOOL "" )
277
277
278
278
# 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 "" )
281
281
282
282
# Use .build-id link.
283
283
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
378
378
set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "" )
379
379
380
380
# 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 "" )
383
383
endforeach ()
384
384
385
385
foreach (target riscv32-unknown-elf )
@@ -433,8 +433,8 @@ foreach(target riscv32-unknown-elf)
433
433
set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "" )
434
434
435
435
# 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 "" )
438
438
endforeach ()
439
439
440
440
set (LLVM_BUILTIN_TARGETS "${BUILTIN_TARGETS} " CACHE STRING "" )
0 commit comments