mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
16 lines
337 B
Bash
Executable file
16 lines
337 B
Bash
Executable file
#!/bin/sh
|
|
|
|
PROG=${0##*/}
|
|
MODE=${MODE:-${m:-aarch64}}
|
|
COSMO=${COSMO:-/opt/cosmo}
|
|
|
|
fatal_error() {
|
|
echo "$PROG: $1" >&2
|
|
exit 1
|
|
}
|
|
|
|
if [ ! -x "$COSMO/o/third_party/gcc/bin/aarch64-linux-musl-ar" ]; then
|
|
fatal_error "you need to run: aarch64-unknown-cosmo-cc --update"
|
|
fi
|
|
|
|
exec "$COSMO/o/third_party/gcc/bin/aarch64-linux-musl-ar" "$@"
|