mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-01 06:28:21 +00:00
19 lines
355 B
Text
19 lines
355 B
Text
|
#!/bin/sh
|
||
|
|
||
|
MODE=${MODE:-$m}
|
||
|
COSMO=${COSMO:-/opt/cosmo}
|
||
|
COSMOS=${COSMOS:-/opt/cosmos}
|
||
|
|
||
|
if [ x"$1" = x"rcs" ] || [ x"$1" = x"rcsD" ]; then
|
||
|
TOOL="$COSMO/o/$MODE/tool/build/ar.com"
|
||
|
else
|
||
|
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-ar"
|
||
|
fi
|
||
|
|
||
|
if [ ! -x "$TOOL" ]; then
|
||
|
echo "$0: you need to run: cosmocc --update" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
exec "$TOOL" "$@"
|