mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-21 17:44:41 -05:00
devkitPPC: add arm64 macOS patch
This commit is contained in:
parent
b700c35789
commit
da06cfb478
|
|
@ -10,6 +10,68 @@ index 4b937306ad0..bfd0375bd60 100644
|
|||
gcn) thread_header=config/gcn/gthr-gcn.h ;;
|
||||
lynx) thread_header=config/gthr-lynx.h ;;
|
||||
mipssde) thread_header=config/mips/gthr-mipssde.h ;;
|
||||
diff --git a/gcc/config.host b/gcc/config.host
|
||||
index 0a02c33cc80..38f7adc655e 100644
|
||||
--- a/gcc/config.host
|
||||
+++ b/gcc/config.host
|
||||
@@ -251,6 +251,10 @@ case ${host} in
|
||||
host_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o"
|
||||
host_lto_plugin_soname=liblto_plugin.dll
|
||||
;;
|
||||
+ aarch64-*-darwin*)
|
||||
+ out_host_hook_obj="${out_host_hook_obj} host-aarch64-darwin.o"
|
||||
+ host_xmake_file="${host_xmake_file} aarch64/x-darwin"
|
||||
+ ;;
|
||||
i[34567]86-*-darwin* | x86_64-*-darwin*)
|
||||
out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
|
||||
host_xmake_file="${host_xmake_file} i386/x-darwin"
|
||||
diff --git a/gcc/config/aarch64/host-aarch64-darwin.c b/gcc/config/aarch64/host-aarch64-darwin.c
|
||||
new file mode 100644
|
||||
index 00000000000..92c38b0b9db
|
||||
--- /dev/null
|
||||
+++ b/gcc/config/aarch64/host-aarch64-darwin.c
|
||||
@@ -0,0 +1,32 @@
|
||||
+/* i386-darwin host-specific hook definitions.
|
||||
+ Copyright (C) 2003-2021 Free Software Foundation, Inc.
|
||||
+
|
||||
+This file is part of GCC.
|
||||
+
|
||||
+GCC is free software; you can redistribute it and/or modify it under
|
||||
+the terms of the GNU General Public License as published by the Free
|
||||
+Software Foundation; either version 3, or (at your option) any later
|
||||
+version.
|
||||
+
|
||||
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
+for more details.
|
||||
+
|
||||
+You should have received a copy of the GNU General Public License
|
||||
+along with GCC; see the file COPYING3. If not see
|
||||
+<http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#define IN_TARGET_CODE 1
|
||||
+
|
||||
+#include "config.h"
|
||||
+#include "system.h"
|
||||
+#include "coretypes.h"
|
||||
+#include "hosthooks.h"
|
||||
+#include "hosthooks-def.h"
|
||||
+#include "config/host-darwin.h"
|
||||
+
|
||||
+/* Darwin doesn't do anything special for aarch64 hosts; this file exists just
|
||||
+ to include config/host-darwin.h. */
|
||||
+
|
||||
+const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
|
||||
diff --git a/gcc/config/aarch64/x-darwin b/gcc/config/aarch64/x-darwin
|
||||
new file mode 100644
|
||||
index 00000000000..6d788d5e89c
|
||||
--- /dev/null
|
||||
+++ b/gcc/config/aarch64/x-darwin
|
||||
@@ -0,0 +1,3 @@
|
||||
+host-aarch64-darwin.o : $(srcdir)/config/aarch64/host-aarch64-darwin.c
|
||||
+ $(COMPILE) $<
|
||||
+ $(POSTCOMPILE)
|
||||
diff --git a/gcc/config/i386/host-mingw32.c b/gcc/config/i386/host-mingw32.c
|
||||
index 360a280b23a..2c03947999a 100644
|
||||
--- a/gcc/config/i386/host-mingw32.c
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user