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 e86740e commit 41b9d28Copy full SHA for 41b9d28
bolt/test/lit.local.cfg
@@ -1,6 +1,11 @@
1
-host_linux_triple = config.target_triple.split("-")[0] + "-unknown-linux-gnu"
+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
+ host_triple = host_triple.split("-")[0] + "-unknown-linux-gnu"
6
7
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}"
8
+flags = f"--target={host_triple} -fPIE {common_linker_flags}"
9
10
config.substitutions.insert(0, ("%cflags", f"%cflags {flags}"))
11
config.substitutions.insert(0, ("%cxxflags", f"%cxxflags {flags}"))
0 commit comments