Author: phosek Date: Wed Sep 13 12:17:41 2017 New Revision: 313173 URL: http://llvm.org/viewvc/llvm-project?rev=313173&view=rev Log: [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 Modified: cfe/trunk/cmake/caches/Fuchsia-stage2.cmake Modified: cfe/trunk/cmake/caches/Fuchsia-stage2.cmake URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/Fuchsia-stage2.cmake?rev=313173&r1=313172&r2=313173&view=diff ============================================================================== --- cfe/trunk/cmake/caches/Fuchsia-stage2.cmake (original) +++ cfe/trunk/cmake/caches/Fuchsia-stage2.cmake Wed Sep 13 12:17:41 2017 @@ -18,6 +18,13 @@ 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() _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits