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

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 4 19:25:41 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)
----------------
petrhosek wrote:

I'd also include the flag in `CMAKE_MODULE_LINKER_FLAGS` for completeness.

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


More information about the cfe-commits mailing list