[llvm] [BOLT] Pass -Wl, --build-id=none to linker in tests (PR #122886)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 02:48:13 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-bolt
Author: Nikita Popov (nikic)
<details>
<summary>Changes</summary>
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`.
---
Full diff: https://github.com/llvm/llvm-project/pull/122886.diff
1 Files Affected:
- (modified) bolt/test/lit.local.cfg (+1-1)
``````````diff
diff --git a/bolt/test/lit.local.cfg b/bolt/test/lit.local.cfg
index e2fa0a4a2210f6..d5a6849b27a771 100644
--- a/bolt/test/lit.local.cfg
+++ b/bolt/test/lit.local.cfg
@@ -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}"))
``````````
</details>
https://github.com/llvm/llvm-project/pull/122886
More information about the llvm-commits
mailing list