[BOLT] Pass -Wl,--build-id=none to linker in tests (#122886)
This fixes the following tests:
BOLT :: AArch64/check-init-not-moved.s
BOLT :: X86/dwarf5-dwarf4-types-backward-forward-cross-reference.test
BOLT :: X86/dwarf5-locexpr-referrence.test
When clang is compiled with `-DENABLE_LINKER_BUILD_ID=ON`.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
host_linux_triple = config.target_triple.split("-")[0] + "-unknown-linux-gnu"
|
||||
common_linker_flags = "-fuse-ld=lld -Wl,--unresolved-symbols=ignore-all -pie"
|
||||
common_linker_flags = "-fuse-ld=lld -Wl,--unresolved-symbols=ignore-all -Wl,--build-id=none -pie"
|
||||
flags = f"--target={host_linux_triple} -fPIE {common_linker_flags}"
|
||||
|
||||
config.substitutions.insert(0, ("%cflags", f"%cflags {flags}"))
|
||||
|
||||
Reference in New Issue
Block a user