From 7dace10d1ac83aa99380d676bc050e04f43e846b Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Sat, 5 Jan 2019 07:57:46 +0000 Subject: [CMake][Fuchsia] Enable x86 relaxation by default This enables x86 relaxation by default. This depends on a linker new enough to support the new reloc types but since we default to lld we don't worry about host system linkers that might be too old to support the new reloc types. Differential Revision: https://reviews.llvm.org/D56349 --- clang/cmake/caches/Fuchsia-stage2.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/cmake') diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake index c4daee1b768..3d9b08da441 100644 --- a/clang/cmake/caches/Fuchsia-stage2.cmake +++ b/clang/cmake/caches/Fuchsia-stage2.cmake @@ -15,6 +15,7 @@ set(LLVM_EXTERNALIZE_DEBUGINFO ON CACHE BOOL "") set(CLANG_PLUGIN_SUPPORT OFF CACHE BOOL "") set(ENABLE_LINKER_BUILD_ID ON CACHE BOOL "") +set(ENABLE_X86_RELAX_RELOCATIONS ON CACHE BOOL "") set(LLVM_ENABLE_LTO ON CACHE BOOL "") if(NOT APPLE) -- cgit v1.2.3