summaryrefslogtreecommitdiff
path: root/clang/cmake
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-11-22 01:38:31 +0000
committerPetr Hosek <phosek@chromium.org>2017-11-22 01:38:31 +0000
commit49efa822ec78f89ff1d9cb4d17de84bfda0a9e4c (patch)
tree9b92fd55230a962d5323be0deec7081e4b070eb2 /clang/cmake
parentafe81c8f282fa7972a7d788ca62c168ae3a6b30a (diff)
[Driver] Make the use of relax relocations a per target option
The support for relax relocations is dependent on the linker and different toolchains within the same compiler can be using different linkers some of which may or may not support relax relocations. Give toolchains the option to control whether they want to use relax relocations in addition to the existing (global) build system option. Differential Revision: https://reviews.llvm.org/D39831
Diffstat (limited to 'clang/cmake')
-rw-r--r--clang/cmake/caches/Fuchsia-stage2.cmake7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index d2f19fd6d04..b5841e257fc 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -18,13 +18,6 @@ if(NOT APPLE)
set(CLANG_DEFAULT_LINKER lld CACHE STRING "")
endif()
-# This is a "Does your linker support it?" option that only applies
-# to x86-64 ELF targets. All Fuchsia target linkers do support it.
-# For x86-64 Linux, it's supported by LLD and by GNU linkers since
-# binutils 2.27, so one can hope that all Linux hosts in use handle it.
-# Ideally this would be settable as a per-target option.
-set(ENABLE_X86_RELAX_RELOCATIONS ON CACHE BOOL "")
-
if(APPLE)
set(LLDB_CODESIGN_IDENTITY "" CACHE STRING "")
endif()