https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/136376
We aren't distributing any shared libraries so we don't need PIC and using PIE instead of PIC can improve performance. >From 55816661f262410862b91e8e54e2f2d947af11fb Mon Sep 17 00:00:00 2001 From: Petr Hosek <pho...@google.com> Date: Fri, 18 Apr 2025 22:05:32 +0000 Subject: [PATCH] [Fuchsia] Disable PIC We aren't distributing any shared libraries so we don't need PIC and using PIE instead of PIC can improve performance. --- clang/cmake/caches/Fuchsia-stage2.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake index e10855f5ef31b..c483955f7ff26 100644 --- a/clang/cmake/caches/Fuchsia-stage2.cmake +++ b/clang/cmake/caches/Fuchsia-stage2.cmake @@ -18,6 +18,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_UNWIND_TABLES OFF CACHE BOOL "") set(LLVM_ENABLE_Z3_SOLVER OFF CACHE BOOL "") _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits