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