From 58d9e476724ae347be4da1ecddc17fd133a1300b Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Wed, 19 Nov 2025 09:41:13 +0200 Subject: [PATCH] [NFCI][bolt][test] Use AT&T syntax explicitly (#167225) 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 8a61d11f5825..78cc73e53b68 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}"))