commit:     48ba69b1bbb0497a3fc02c55309a3fec6b5c5079
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  9 04:10:12 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov  9 04:10:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=48ba69b1

scripts/bootstrap-prefix.sh: update for macOS 12 for arm64

Signed-off-by: Sam James <sam <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index e2e3787075..825aa87c5e 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -396,11 +396,17 @@ bootstrap_setup() {
                        rev=${CHOST##*darwin}
                        profile="prefix/darwin/macos/11.$((rev - 20))/arm64"
                        ;;
+               # TODO: Come up with something better for macOS 11+
                x86_64-apple-darwin2[123456789])
                        # Monterey is 12.0
                        rev=${CHOST##*darwin}
                        profile="prefix/darwin/macos/12.$((rev - 21))/x64"
                        ;;
+               arm64-apple-darwin2[123456789])
+                       # Monterey is 12.0
+                       rev=${CHOST##*darwin}
+                       profile="prefix/darwin/macos/12.$((rev - 21))/arm64"
+                       ;;
                i*86-pc-linux-gnu)
                        profile=${profile_linux/ARCH/x86}
                        ;;

Reply via email to