mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-19 19:16:53 +00:00

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`.
7 lines
377 B
INI
7 lines
377 B
INI
host_linux_triple = config.target_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_linux_triple} -fPIE {common_linker_flags}"
|
|
|
|
config.substitutions.insert(0, ("%cflags", f"%cflags {flags}"))
|
|
config.substitutions.insert(0, ("%cxxflags", f"%cxxflags {flags}"))
|