Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 914987d

Browse files
committed
[Fuchsia] Set ENABLE_X86_RELAX_RELOCATIONS for Fuchsia builds
This is a "Does your linker support it?" option, and all ours do. Patch by Roland McGrath Differential Revision: https://reviews.llvm.org/D37785 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313173 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 80c7261 commit 914987d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/caches/Fuchsia-stage2.cmake

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ if(NOT APPLE)
1818
set(CLANG_DEFAULT_LINKER lld CACHE STRING "")
1919
endif()
2020

21+
# This is a "Does your linker support it?" option that only applies
22+
# to x86-64 ELF targets. All Fuchsia target linkers do support it.
23+
# For x86-64 Linux, it's supported by LLD and by GNU linkers since
24+
# binutils 2.27, so one can hope that all Linux hosts in use handle it.
25+
# Ideally this would be settable as a per-target option.
26+
set(ENABLE_X86_RELAX_RELOCATIONS ON CACHE BOOL "")
27+
2128
if(APPLE)
2229
set(LLDB_CODESIGN_IDENTITY "" CACHE STRING "")
2330
endif()

0 commit comments

Comments
 (0)