-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[Fuchsia] Disable PIC #136376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fuchsia] Disable PIC #136376
Conversation
We aren't distributing any shared libraries so we don't need PIC and using PIE instead of PIC can improve performance.
|
@llvm/pr-subscribers-clang Author: Petr Hosek (petrhosek) ChangesWe aren't distributing any shared libraries so we don't need PIC and using PIE instead of PIC can improve performance. Full diff: https://github.com/llvm/llvm-project/pull/136376.diff 1 Files Affected:
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 "")
|
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/8393 Here is the relevant piece of the build log for the reference |
This reverts commit 846986f.
Reverts #136376 because it broke Fuchsia Clang toolchain builders.
Reverts llvm/llvm-project#136376 because it broke Fuchsia Clang toolchain builders.
We aren't distributing any shared libraries so we don't need PIC and using PIE instead of PIC can improve performance.
Reverts llvm#136376 because it broke Fuchsia Clang toolchain builders.
We aren't distributing any shared libraries so we don't need PIC and using PIE instead of PIC can improve performance.