hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clang pretends to be gcc 4.2.0 which is a big lie when it comes
to features, its same as latest gcc
 
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending
 
Index: LuaJIT-2.0.5/src/lj_arch.h
===================================================================
--- LuaJIT-2.0.5.orig/src/lj_arch.h
+++ LuaJIT-2.0.5/src/lj_arch.h
@@ -436,7 +436,7 @@
 #endif
 #endif
 #elif !LJ_TARGET_PS3
-#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
+#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3) && !defined(__clang__)
 #error "Need at least GCC 4.3 or newer"
 #endif
 #endif