[clang] 8d89dbc - [CMake] Drop libLTO and switch to PIE for Fuchsia toolchain

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 21 11:33:49 PDT 2022


Author: Petr Hosek
Date: 2022-10-21T18:33:13Z
New Revision: 8d89dbceeb576171efd12a5657c038a2ec2e54a5

URL: https://github.com/llvm/llvm-project/commit/8d89dbceeb576171efd12a5657c038a2ec2e54a5
DIFF: https://github.com/llvm/llvm-project/commit/8d89dbceeb576171efd12a5657c038a2ec2e54a5.diff

LOG: [CMake] Drop libLTO and switch to PIE for Fuchsia toolchain

All our users have migrated to ld64.lld so we no longer need libLTO.

Differential Revision: https://reviews.llvm.org/D135471

Added: 
    

Modified: 
    clang/cmake/caches/Fuchsia-stage2.cmake

Removed: 
    


################################################################################
diff  --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index 7a09e4798309e..e94dd3be29821 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -14,6 +14,7 @@ set(LLVM_ENABLE_LIBEDIT OFF CACHE BOOL "")
 set(LLVM_ENABLE_LLD ON CACHE BOOL "")
 set(LLVM_ENABLE_LTO ON CACHE BOOL "")
 set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ON CACHE BOOL "")
+set(LLVM_ENABLE_PIC OFF CACHE BOOL "")
 set(LLVM_ENABLE_PLUGINS OFF CACHE BOOL "")
 set(LLVM_ENABLE_TERMINFO OFF CACHE BOOL "")
 set(LLVM_ENABLE_UNWIND_TABLES OFF CACHE BOOL "")
@@ -288,7 +289,6 @@ set(LLVM_TOOLCHAIN_TOOLS
 set(LLVM_DISTRIBUTION_COMPONENTS
   clang
   lld
-  LTO
   clang-apply-replacements
   clang-doc
   clang-format


        


More information about the cfe-commits mailing list