[llvm-branch-commits] [clang] [libcxx] [libcxxabi] [Fuchsia][cmake] Allow using FatLTO when building runtimes (PR #112277)
Paul Kirth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Dec 2 09:38:29 PST 2024
================
@@ -1285,7 +1285,7 @@ elseif(LLVM_ENABLE_LTO)
endif()
endif()
-if(LLVM_ENABLE_FATLTO AND UNIX AND NOT APPLE)
+if(LLVM_ENABLE_FATLTO AND ((UNIX AND NOT APPLE) OR FUCHSIA))
----------------
ilovepi wrote:
Because Fuchsia Targets aren't UNIX. Without this change `-ffat-lto-objects` won't be passed to `clang` through CMake. The additional logic is basically to restrict the flag to ELF targets, and it missed Fuchsia when we added it, since we weren't building our runtimes with FatLTO initially, just the toolchain + tests.
https://github.com/llvm/llvm-project/pull/112277
More information about the llvm-branch-commits
mailing list