summaryrefslogtreecommitdiff
path: root/Ports/bdwgc/patches/0002-Error-on-unknown-arch.patch
blob: ae011599f34ffde233474dabbc4074b39297f8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From ae7f99f75b0957d62364a19e9a75e74e2ef9bd8d Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Thu, 24 Feb 2022 01:50:40 +0330
Subject: [PATCH 2/7] 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 e9d1d42..8e48b66 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -358,6 +358,8 @@ EXTERN_C_BEGIN
 #        define I386
 #    elif defined(__x86_64__)
 #        define X86_64
+#    else
+#        error "Invalid arch for serenity"
 #    endif
 #endif
 # if defined(__HAIKU__) && (defined(__amd64__) || defined(__x86_64__))
-- 
2.36.1