crosstool-ng/packages/gcc/8.5.0/0023-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
434 B
Diff

diff -ru a/config.guess b/config.guess
--- a/config.guess 2021-05-14 10:42:08.000000000 +0200
+++ b/config.guess 2021-12-20 01:38:22.000000000 +0100
@@ -1276,6 +1276,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
eval $set_cc_for_build