We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5528456 commit 525ee97Copy full SHA for 525ee97
bolt/test/lit.local.cfg
@@ -1,6 +1,12 @@
1
-host_linux_triple = config.target_triple
+host_triple = config.target_triple
2
+
3
+# Force triple on non-linux hosts to get ELF binaries on all platforms.
4
+if not "linux" in host_triple:
5
+ arch = host_triple.split("-")[0]
6
+ host_triple = arch+"-unknown-linux-gnu"
7
8
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}"
9
+flags = f"--target={host_triple} -fPIE {common_linker_flags}"
10
11
config.substitutions.insert(0, ("%cflags", f"%cflags {flags}"))
12
config.substitutions.insert(0, ("%cxxflags", f"%cxxflags {flags}"))
0 commit comments