mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 10:20:29 +00:00
Fix the cosmocc ar commands
This commit is contained in:
parent
f5b39e9f31
commit
b494d56549
4 changed files with 19 additions and 64 deletions
|
@ -9,21 +9,8 @@ fatal_error() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
if [ ! -x "$COSMO/o//tool/build/ar.com" ]; then
|
||||
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
|
||||
|
||||
if [ x"$1" = x"rc" ] ||
|
||||
[ x"$1" = x"rcD" ] ||
|
||||
[ x"$1" = x"rcu" ] |
|
||||
[ x"$1" = x"rcuD" ] ||
|
||||
[ x"$1" = x"rcs" ] ||
|
||||
[ x"$1" = x"rcsD" ] ||
|
||||
[ x"$1" = x"--help" ] ||
|
||||
[ x"$1" = x"--version" ]; then
|
||||
AR="$COSMO/o//tool/build/ar.com"
|
||||
else
|
||||
AR="$COSMO/o/third_party/gcc/bin/aarch64-linux-musl-ar"
|
||||
fi
|
||||
|
||||
exec "$AR" "$@"
|
||||
exec "$COSMO/o/third_party/gcc/bin/aarch64-linux-musl-ar" "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue