t9c, 9l: updates for macOS arm64. - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 291f7411783bf6871b253f3b15ce691eea7a257e | |
parent 1f098efb7370a0b28306d10681e21883fb1c1507 | |
Author: Anthony Sorace <[email protected]> | |
Date: Sat, 26 Sep 2020 16:18:00 -0700 | |
9c, 9l: updates for macOS arm64. | |
Diffstat: | |
M bin/9c | 4 ++++ | |
M bin/9l | 3 +++ | |
2 files changed, 7 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/bin/9c b/bin/9c | |
t@@ -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" | |
diff --git a/bin/9l b/bin/9l | |
t@@ -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" | |
;; |