[llvm] [BOLT][NFC] Using target_triple in lit config (PR #144078)

Paul Osmialowski via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 13 10:27:27 PDT 2025


================
@@ -1,4 +1,4 @@
-host_linux_triple = config.target_triple.split("-")[0] + "-unknown-linux-gnu"
----------------
pawosm-arm wrote:

> have a `REQUIRES:` so that they can be skipped when the Linux distro doesn't provide the files. This change would make it easy to test aarch64/riscv64 on x86-64 hosts, as the host often lacks aarch64/riscv64 libstdc++/glibc files.

It would still be failing on the Linux distros that do provide all the necessary files (libraries, libgcc.a in this case) but forcing/hardcoding the `-unknown-linux-gnu` target triple makes them effectively invisible to the linker (since the path to libgcc.a has the triple on its way). Note that apart from BOLT, the test cases in all other areas of LLVM are passing, but what they are doing to achieve this is what this patch is introducing, namely, to query the config correctly.


https://github.com/llvm/llvm-project/pull/144078


More information about the llvm-commits mailing list