@@ -190,10 +190,6 @@ foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unkn
190
190
set (RUNTIMES_${target} _LLVM_TOOLS_DIR "${CMAKE_BINARY_DIR} /bin" CACHE BOOL "" )
191
191
set (RUNTIMES_${target} _LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "" )
192
192
193
- # Enable FatLTO for Linux and baremetal runtimes
194
- set (RUNTIMES_${target} _LLVM_ENABLE_LTO ON CACHE BOOL "" )
195
- set (RUNTIMES_${target} _LLVM_ENABLE_FATLTO ON CACHE BOOL "" )
196
-
197
193
# Use .build-id link.
198
194
list (APPEND RUNTIME_BUILD_ID_LINK "${target} " )
199
195
endif ()
@@ -276,10 +272,6 @@ if(FUCHSIA_SDK)
276
272
set (RUNTIMES_${target} +asan+noexcept_LIBCXXABI_ENABLE_EXCEPTIONS OFF CACHE BOOL "" )
277
273
set (RUNTIMES_${target} +asan+noexcept_LIBCXX_ENABLE_EXCEPTIONS OFF CACHE BOOL "" )
278
274
279
- # Enable FatLTO for Fuchsia runtimes
280
- set (RUNTIMES_${target} _LLVM_ENABLE_LTO ON CACHE BOOL "" )
281
- set (RUNTIMES_${target} _LLVM_ENABLE_FATLTO ON CACHE BOOL "" )
282
-
283
275
# Use .build-id link.
284
276
list (APPEND RUNTIME_BUILD_ID_LINK "${target} " )
285
277
endforeach ()
@@ -371,10 +363,6 @@ foreach(target armv6m-none-eabi;armv7m-none-eabi;armv8m.main-none-eabi;armv8.1m.
371
363
set (RUNTIMES_${target} _LLVM_INCLUDE_TESTS OFF CACHE BOOL "" )
372
364
set (RUNTIMES_${target} _LLVM_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
373
365
set (RUNTIMES_${target} _LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "" )
374
-
375
- # Enable FatLTO for baremetal runtimes
376
- set (RUNTIMES_${target} _LLVM_ENABLE_LTO ON CACHE BOOL "" )
377
- set (RUNTIMES_${target} _LLVM_ENABLE_FATLTO ON CACHE BOOL "" )
378
366
endforeach ()
379
367
380
368
foreach (target riscv32-unknown-elf)
@@ -426,10 +414,6 @@ foreach(target riscv32-unknown-elf)
426
414
set (RUNTIMES_${target} _LLVM_INCLUDE_TESTS OFF CACHE BOOL "" )
427
415
set (RUNTIMES_${target} _LLVM_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
428
416
set (RUNTIMES_${target} _LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "" )
429
-
430
- # Enable FatLTO for baremetal runtimes
431
- set (RUNTIMES_${target} _LLVM_ENABLE_LTO ON CACHE BOOL "" )
432
- set (RUNTIMES_${target} _LLVM_ENABLE_FATLTO ON CACHE BOOL "" )
433
417
endforeach ()
434
418
435
419
set (LLVM_BUILTIN_TARGETS "${BUILTIN_TARGETS} " CACHE STRING "" )
0 commit comments