crosstool-ng/packages/gcc/9.5.0/0019-darwin-aarch64-config.patch
Steven Fackler 9f2866037a Support targeting macOS aarch64 in older GCCs
This adds backports of a couple of patches necessary to support macOS
arm64 hosts for gcc. It was ported from
https://github.com/richfelker/musl-cross-make/pull/129 with some small
fixups to make the patches apply cleanly.

Signed-off-by: Steven Fackler <sfackler@gmail.com>
2023-03-14 08:56:14 +13:00

14 lines
428 B
Diff

diff -ru a/config.guess b/config.guess
--- a/config.guess 2021-06-01 09:53:04.000000000 +0200
+++ b/config.guess 2021-12-20 01:29:55.000000000 +0100
@@ -1309,6 +1309,9 @@
*:Rhapsody:*:*)
echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
exit ;;
+ arm64:Darwin:*:*)
+ echo aarch64-apple-darwin"$UNAME_RELEASE"
+ exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
set_cc_for_build