⛏️ index : buildtools.git

author Thorsten Claus <thorstenclaus@web.de> 2023-03-11 18:31:28.0 +01:00:00
committer Adrien Destugues <pulkomandy@pulkomandy.tk> 2023-06-04 7:32:35.0 +00:00:00
commit
d11a12c7aeecfa34da2411a9838732aa3ee028e3 [patch]
tree
a1641f8085b3ab039d63d7cb1fcdc4d553c6e9f9
parent
9866b1a47a32306b1660ebff0efbec067545cf7f
download
d11a12c7aeecfa34da2411a9838732aa3ee028e3.tar.gz

Fixes build error under MacOS

Fixes the
error: use of undeclared identifier 'HOST_HOOKS_INITIALIZER'

on Apple with M1 (silicon) chip

Fixes #17457

Change-Id: Id3b550c0d875d521539923ab7ecac0006715b7d6
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/6191
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Diff

 gcc/gcc/config/host-darwin.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/gcc/config/host-darwin.c b/gcc/gcc/config/host-darwin.c
index b621e7c..59cfb8f 100644
--- a/gcc/gcc/config/host-darwin.c
+++ a/gcc/gcc/config/host-darwin.c
@@ -22,6 +22,8 @@
#include "coretypes.h"
#include "diagnostic-core.h"
#include "config/host-darwin.h"
#include "hosthooks.h"
#include "hosthooks-def.h"

/* Yes, this is really supposed to work.  */
/* This allows for a pagesize of 16384, which we have on Darwin20, but should