[clang] [Fuchsia] Disable building runtimes with LTO (PR #126306)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 7 12:49:40 PST 2025
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/126306
Temporarily disable LTO'd runtimes, while we investigate an issue
building Fuchsia with LTO.
>From e74084d6efca42e322001394ae7710d10932a5b9 Mon Sep 17 00:00:00 2001
From: Paul Kirth <paulkirth at google.com>
Date: Fri, 7 Feb 2025 12:47:05 -0800
Subject: [PATCH] [Fuchsia] Disable building runtimes with LTO
Temporarily disable LTO'd runtimes, while we investigate an issue
building Fuchsia with LTO.
---
clang/cmake/caches/Fuchsia-stage2.cmake | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index ba1bb3573311456..99890b8246ad74a 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -190,8 +190,8 @@ foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unkn
set(RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "")
# Enable FatLTO for Linux and baremetal runtimes
- set(RUNTIMES_${target}_LLVM_ENABLE_LTO ON CACHE BOOL "")
- set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO ON CACHE BOOL "")
+ set(RUNTIMES_${target}_LLVM_ENABLE_LTO OFF CACHE BOOL "")
+ set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO OFF CACHE BOOL "")
# Use .build-id link.
list(APPEND RUNTIME_BUILD_ID_LINK "${target}")
@@ -276,8 +276,8 @@ if(FUCHSIA_SDK)
set(RUNTIMES_${target}+asan+noexcept_LIBCXX_ENABLE_EXCEPTIONS OFF CACHE BOOL "")
# Enable FatLTO for Fuchsia runtimes
- set(RUNTIMES_${target}_LLVM_ENABLE_LTO ON CACHE BOOL "")
- set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO ON CACHE BOOL "")
+ set(RUNTIMES_${target}_LLVM_ENABLE_LTO OFF CACHE BOOL "")
+ set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO OFF CACHE BOOL "")
# Use .build-id link.
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
set(RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "")
# Enable FatLTO for baremetal runtimes
- set(RUNTIMES_${target}_LLVM_ENABLE_LTO ON CACHE BOOL "")
- set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO ON CACHE BOOL "")
+ set(RUNTIMES_${target}_LLVM_ENABLE_LTO OFF CACHE BOOL "")
+ set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO OFF CACHE BOOL "")
endforeach()
foreach(target riscv32-unknown-elf)
@@ -433,8 +433,8 @@ foreach(target riscv32-unknown-elf)
set(RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "")
# Enable FatLTO for baremetal runtimes
- set(RUNTIMES_${target}_LLVM_ENABLE_LTO ON CACHE BOOL "")
- set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO ON CACHE BOOL "")
+ set(RUNTIMES_${target}_LLVM_ENABLE_LTO OFF CACHE BOOL "")
+ set(RUNTIMES_${target}_LLVM_ENABLE_FATLTO OFF CACHE BOOL "")
endforeach()
set(LLVM_BUILTIN_TARGETS "${BUILTIN_TARGETS}" CACHE STRING "")
More information about the cfe-commits
mailing list