luajit: fix compilation with host clang
authorRosen Penev <rosenp@gmail.com>
Sat, 20 Mar 2021 22:23:22 +0000 (15:23 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 26 Mar 2021 18:25:42 +0000 (11:25 -0700)
It errors out with this section.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lang/luajit/patches/020-clang.patch [new file with mode: 0644]

diff --git a/lang/luajit/patches/020-clang.patch b/lang/luajit/patches/020-clang.patch
new file mode 100644 (file)
index 0000000..e0a5374
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/src/lj_arch.h
++++ b/src/lj_arch.h
+@@ -391,9 +391,6 @@
+ #endif
+ #endif
+ #elif !LJ_TARGET_PS3
+-#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
+-#error "Need at least GCC 4.3 or newer"
+-#endif
+ #endif
+ #endif