aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2023-01-04 10:30:59 +0100
committerMike Pall <mike>2023-01-04 10:30:59 +0100
commita4f4f5b83564a1075bea0ac7c1fd8768be1caff7 (patch)
treecf9826308a08ab26065ce28a37ffebb60af3c742
parenta04480e311f93d3ceb2f92549cad3fffa38250ef (diff)
downloadluajit-a4f4f5b83564a1075bea0ac7c1fd8768be1caff7.tar.gz
luajit-a4f4f5b83564a1075bea0ac7c1fd8768be1caff7.tar.bz2
luajit-a4f4f5b83564a1075bea0ac7c1fd8768be1caff7.zip
Don't fail for Clang builds, which pretend to be an ancient GCC.
Reported by pkubaj.
-rw-r--r--src/lj_arch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index 5fb798d9..bddd757d 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -466,11 +466,17 @@
466#endif 466#endif
467#endif 467#endif
468#elif !LJ_TARGET_PS3 468#elif !LJ_TARGET_PS3
469#if __clang__
470#if ((__clang_major__ < 3) || ((__clang_major__ == 3) && __clang_minor__ < 5))
471#error "Need at least Clang 3.5 or newer"
472#endif
473#else
469#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3) 474#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
470#error "Need at least GCC 4.3 or newer" 475#error "Need at least GCC 4.3 or newer"
471#endif 476#endif
472#endif 477#endif
473#endif 478#endif
479#endif
474 480
475/* Check target-specific constraints. */ 481/* Check target-specific constraints. */
476#ifndef _BUILDVM_H 482#ifndef _BUILDVM_H