Files
marqdo-extension-conformance/scripts/host-target.sh
T

14 lines
383 B
Bash
Executable File

#!/usr/bin/env bash
# The supported lane builds public C ABI fixtures without a Rust toolchain.
set -euo pipefail
case "$(uname -s):$(uname -m)" in
Linux:x86_64)
getconf GNU_LIBC_VERSION >/dev/null
printf '%s\n' x86_64-unknown-linux-gnu
;;
*)
# Preserve the original host-triple discovery for experimental lanes.
rustc -vV | sed -n 's/^host: //p'
;;
esac