From a3741eb3cd4c6acf286b8401bc8d91d9a55a1f87 Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Sun, 9 Nov 2025 15:46:40 +0200 Subject: [PATCH] [NFCI][bolt][test] Use AT&T syntax explicitly This enables building LLVM with `-mllvm -x86-asm-syntax=intel` in one's Clang config files (i.e. a global preference for Intel syntax). `-masm=att` is insufficient as it doesn't override a specification of `-mllvm -x86-asm-syntax`. --- bolt/test/lit.local.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/test/lit.local.cfg b/bolt/test/lit.local.cfg index 8a61d11f5825f..78cc73e53b680 100644 --- a/bolt/test/lit.local.cfg +++ b/bolt/test/lit.local.cfg @@ -5,7 +5,7 @@ if not "linux" in host_triple: host_triple = host_triple.split("-")[0] + "-unknown-linux-gnu" common_linker_flags = "-fuse-ld=lld -Wl,--unresolved-symbols=ignore-all -Wl,--build-id=none -pie" -flags = f"--target={host_triple} -fPIE {common_linker_flags}" +flags = f"--target={host_triple} -fPIE {common_linker_flags} -mllvm -x86-asm-syntax=att" config.substitutions.insert(0, ("%cflags", f"%cflags {flags}")) config.substitutions.insert(0, ("%cxxflags", f"%cxxflags {flags}"))