mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-02 07:50:31 +00:00
prefer system ape
This commit is contained in:
parent
161ec3ffb7
commit
fa66484051
1 changed files with 14 additions and 12 deletions
|
@ -40,19 +40,21 @@ fi
|
|||
$MAKE -j$NPROC m= \
|
||||
$APELINK
|
||||
|
||||
case $(uname -s) in
|
||||
Darwin)
|
||||
case $(mode) in
|
||||
aarch64)
|
||||
cc -O -o "$TMPDIR/ape.$$" .cosmocc/current/bin/ape-m1.c || exit
|
||||
trap 'rm "$TMPDIR/ape.$$"' EXIT
|
||||
APE=$TMPDIR/ape.$$
|
||||
if ! APE=$(command -v ape); then
|
||||
case $(uname -s) in
|
||||
Darwin)
|
||||
case $(mode) in
|
||||
aarch64)
|
||||
cc -O -o "$TMPDIR/ape.$$" .cosmocc/current/bin/ape-m1.c || exit
|
||||
trap 'rm "$TMPDIR/ape.$$"' EXIT
|
||||
APE=$TMPDIR/ape.$$
|
||||
;;
|
||||
*) APE=.cosmocc/current/bin/ape-x86_64.macho ;;
|
||||
esac
|
||||
;;
|
||||
*) APE=.cosmocc/current/bin/ape-x86_64.macho ;;
|
||||
esac
|
||||
;;
|
||||
*) APE=.cosmocc/current/bin/ape-$(uname -m).elf ;;
|
||||
esac
|
||||
*) APE=.cosmocc/current/bin/ape-$(uname -m).elf ;;
|
||||
esac
|
||||
fi
|
||||
stat $APE
|
||||
|
||||
$MAKE -j$NPROC m=$AMD64 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue