#!/usr/bin/env bash
# Stand-in for `spinel` that tep calls when building for linux-arm64.
# The host (x86-64) Spinel does the slow part, Ruby -> C, natively; the
# C compiler it then calls is scripts/arm64-cc, which compiles and links
# that C inside the emulated arm64 root. Both Spinels are the same commit.
set -euo pipefail
here=$(cd "$(dirname "$0")" && pwd)
exec "${SPINEL_HOST:?}" "$@" "--cc=$here/arm64-cc"
