summaryrefslogtreecommitdiff
path: root/Toolchain
diff options
context:
space:
mode:
authormodmuss50 <modmuss50@gmail.com>2021-07-08 10:50:39 +0100
committerGunnar Beutner <gunnar@beutner.name>2021-07-08 16:07:14 +0200
commit036f2a14edbedb0725490d9780d7a29ce5a762b6 (patch)
tree41d40b79da788d32bfe61a42956e283a547d97f6 /Toolchain
parentf1266335e74400520180b10919bd916a7d9a2233 (diff)
downloadserenity-036f2a14edbedb0725490d9780d7a29ce5a762b6.zip
Toolchain: Fix building toolchain on arm64 macs
This patch is based off: https://github.com/osx-cross/homebrew-avr/pull/248 and https://github.com/riscv/riscv-gnu-toolchain/issues/800
Diffstat (limited to 'Toolchain')
-rw-r--r--Toolchain/Patches/gcc.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/Toolchain/Patches/gcc.patch b/Toolchain/Patches/gcc.patch
index 89f1fa125f..f3b7ed7451 100644
--- a/Toolchain/Patches/gcc.patch
+++ b/Toolchain/Patches/gcc.patch
@@ -6317,3 +6317,17 @@ diff -Naur gcc-11.1.0/libstdc++-v3/configure gcc-11.1.0.serenity/libstdc++-v3/co
if test x$gcc_no_link = xyes; then
# Setting cross_compile will disable run tests; it will
# also disable AC_CHECK_FILE but that's generally
+diff -Naur gcc-11.1.0/gcc/config/host-darwin.c gcc-11.1.0.serenity/gcc/config/host-darwin.c
+--- gcc-11.1.0/gcc/config/host-darwin.c 2021-04-27 03:00:13.000000000 -0700
++++ gcc-11.1.0.serenity/gcc/config/host-darwin.c 2021-06-11 14:49:13.754000000 -0700
+@@ -22,6 +22,10 @@
+ #include "coretypes.h"
+ #include "diagnostic-core.h"
+ #include "config/host-darwin.h"
++#include "hosthooks.h"
++#include "hosthooks-def.h"
++
++const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
+
+ /* Yes, this is really supposed to work. */
+ /* This allows for a pagesize of 16384, which we have on Darwin20, but should \ No newline at end of file