mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
[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`.
This commit is contained in:
@@ -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}"))
|
||||
|
||||
Reference in New Issue
Block a user