Skip to content

Commit 1974c2c

Browse files
committed
[BOLT][Tests] Use AT&T assembler syntax only for X86 tests
Enabling AT&T syntax for all tests is broken when X86 target is not enabled as reported in llvm#167225.
1 parent 44cffbe commit 1974c2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bolt/test/X86/lit.local.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if not "X86" in config.root.targets:
22
config.unsupported = True
33

4-
flags = "--target=x86_64-unknown-linux-gnu -nostdlib"
4+
flags = "--target=x86_64-unknown-linux-gnu -nostdlib -mllvm -x86-asm-syntax=att"
55

66
config.substitutions.insert(0, ("%cflags", f"%cflags {flags}"))
77
config.substitutions.insert(0, ("%cxxflags", f"%cxxflags {flags}"))

bolt/test/lit.local.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if not "linux" in host_triple:
55
host_triple = host_triple.split("-")[0] + "-unknown-linux-gnu"
66

77
common_linker_flags = "-fuse-ld=lld -Wl,--unresolved-symbols=ignore-all -Wl,--build-id=none -pie"
8-
flags = f"--target={host_triple} -fPIE {common_linker_flags} -mllvm -x86-asm-syntax=att"
8+
flags = f"--target={host_triple} -fPIE {common_linker_flags}"
99

1010
config.substitutions.insert(0, ("%cflags", f"%cflags {flags}"))
1111
config.substitutions.insert(0, ("%cxxflags", f"%cxxflags {flags}"))

0 commit comments

Comments
 (0)