[clang] [llvm] [CMAKE] Enable FatLTO as a build option for LLVM (PR #80480)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 5 10:14:51 PST 2024


================
@@ -1251,6 +1253,10 @@ elseif(LLVM_ENABLE_LTO)
   endif()
 endif()
 
+if(LLVM_ENABLE_FATLTO AND (FUCHSIA OR UNIX))
+    append("-ffat-lto-objects" CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
----------------
ilovepi wrote:

done. Thanks for the suggestion.

https://github.com/llvm/llvm-project/pull/80480


More information about the cfe-commits mailing list