]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Don't fail for Clang builds, which pretend to be an ancient GCC.
authorMike Pall <mike>
Wed, 4 Jan 2023 09:30:59 +0000 (10:30 +0100)
committerMike Pall <mike>
Wed, 4 Jan 2023 09:30:59 +0000 (10:30 +0100)
Reported by pkubaj.

src/lj_arch.h

index 5fb798d9aaa3f5a88eb0e141b904672ef4ebf0da..bddd757d3e04b78bcf121c6da589af0c4694cc58 100644 (file)
 #endif
 #endif
 #elif !LJ_TARGET_PS3
+#if __clang__
+#if ((__clang_major__ < 3) || ((__clang_major__ == 3) && __clang_minor__ < 5))
+#error "Need at least Clang 3.5 or newer"
+#endif
+#else
 #if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
 #error "Need at least GCC 4.3 or newer"
 #endif
 #endif
 #endif
+#endif
 
 /* Check target-specific constraints. */
 #ifndef _BUILDVM_H