This corresponds to binutils' --enable-x86-relax-relocations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273224
91177308-0d34-0410-b5e6-
96231b3b80d8
set(ENABLE_LINKER_BUILD_ID OFF CACHE BOOL "pass --build-id to ld")
+set(ENABLE_X86_RELAX_RELOCATIONS OFF CACHE BOOL
+ "enable x86 relax relocations by default")
+
set(CLANG_DEFAULT_CXX_STDLIB "" CACHE STRING
"Default C++ stdlib to use (empty for architecture default, \"libstdc++\" or \"libc++\"")
if (NOT(CLANG_DEFAULT_CXX_STDLIB STREQUAL "" OR
/* pass --build-id to ld */
#cmakedefine ENABLE_LINKER_BUILD_ID
+/* enable x86 relax relocations by default */
+#cmakedefine01 ENABLE_X86_RELAX_RELOCATIONS
+
#endif
// options.
bool CompressDebugSections = false;
- bool UseRelaxRelocations = false;
+ bool UseRelaxRelocations = ENABLE_X86_RELAX_RELOCATIONS;
const char *MipsTargetFeature = nullptr;
for (const Arg *A :
Args.filtered(options::OPT_Wa_COMMA, options::OPT_Xassembler)) {