aboutsummaryrefslogtreecommitdiff
path: root/clang/cmake/caches
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2024-03-15 16:35:06 -0700
committerGitHub <noreply@github.com>2024-03-15 16:35:06 -0700
commit43fc921795bd130a325c013d60f209b5c6128fc7 (patch)
tree5544e0c681fedea4748d9172c3b47789b5b86faa /clang/cmake/caches
parent83afcbf5f39b9766fd4e5c7d577e308d71f9edc1 (diff)
downloadllvm-43fc921795bd130a325c013d60f209b5c6128fc7.zip
llvm-43fc921795bd130a325c013d60f209b5c6128fc7.tar.gz
llvm-43fc921795bd130a325c013d60f209b5c6128fc7.tar.bz2
[CMAKE] Enable FatLTO as a build option for LLVM (#80480)
Since LLVM supports `-ffat-lto-objects` we should enable this as an option in the LLVM build. FatLTO should improve the time it takes to build tests for LTO enabled builds of the compiler by not linking w/ the bitcode portion of the object files, which should speed up build times for LTO builds without disabling optimizations.
Diffstat (limited to 'clang/cmake/caches')
-rw-r--r--clang/cmake/caches/Fuchsia-stage2.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index db7430b..d5546e2 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -11,6 +11,7 @@ set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "
set(LLVM_ENABLE_BACKTRACES OFF CACHE BOOL "")
set(LLVM_ENABLE_DIA_SDK OFF CACHE BOOL "")
+set(LLVM_ENABLE_FATLTO ON CACHE BOOL "")
set(LLVM_ENABLE_HTTPLIB ON CACHE BOOL "")
set(LLVM_ENABLE_LIBCXX ON CACHE BOOL "")
set(LLVM_ENABLE_LIBEDIT OFF CACHE BOOL "")