summaryrefslogtreecommitdiff
path: root/Ports/bdwgc/patches/0002-Error-on-unknown-arch.patch
blob: f5809d5ff4cb61dfafd47403ebe54af750842bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Mon, 27 Mar 2023 20:04:41 +1100
Subject: [PATCH] Error on unknown arch

---
 include/private/gcconfig.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index 2126a12..7b8b86f 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -344,6 +344,8 @@ EXTERN_C_BEGIN
 #        define I386
 #    elif defined(__x86_64__)
 #        define X86_64
+#    else
+#        error "Invalid arch for serenity"
 #    endif
 #endif
 # if (defined(__BEOS__) || defined(__HAIKU__)) && defined(_X86_)