9c, 9l: updates for macOS arm64.

This commit is contained in:
Anthony Sorace 2020-09-26 16:18:00 -07:00 committed by Dan Cross
parent 1f098efb73
commit 291f741178
2 changed files with 7 additions and 0 deletions

4
bin/9c
View file

@ -119,6 +119,10 @@ case "$tag" in
useclang
cflags="$cflags -g3 -m64"
;;
*Darwin-arm64*)
useclang
cflags="$cflags -g3 -m64"
;;
*Darwin*clang*)
useclang
cflags="$cflags -g3 -m32"

3
bin/9l
View file

@ -30,6 +30,9 @@ case "$tag" in
*Darwin*x86_64*)
ld="${CC9:-gcc} -m64 $CC9FLAGS"
;;
*Darwin-arm64*)
ld="${CC9:-gcc} -m64 $CC9FLAGS"
;;
*Darwin*)
ld="${CC9:-gcc} -m32 $CC9FLAGS"
;;