mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix check for minimum GCC version.
This commit is contained in:
parent
9a9509c66a
commit
1c8ed534b3
@ -212,7 +212,11 @@
|
|||||||
|
|
||||||
/* Check for minimum required compiler versions. */
|
/* Check for minimum required compiler versions. */
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#if LJ_TARGET_X64
|
#if LJ_TARGET_X86
|
||||||
|
#if (__GNUC__ < 3) || ((__GNUC__ == 3) && __GNUC_MINOR__ < 4)
|
||||||
|
#error "Need at least GCC 3.4 or newer"
|
||||||
|
#endif
|
||||||
|
#elif LJ_TARGET_X64
|
||||||
#if __GNUC__ < 4
|
#if __GNUC__ < 4
|
||||||
#error "Need at least GCC 4.0 or newer"
|
#error "Need at least GCC 4.0 or newer"
|
||||||
#endif
|
#endif
|
||||||
@ -220,14 +224,10 @@
|
|||||||
#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 2)
|
#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 2)
|
||||||
#error "Need at least GCC 4.2 or newer"
|
#error "Need at least GCC 4.2 or newer"
|
||||||
#endif
|
#endif
|
||||||
#elif LJ_TARGET_PPC
|
#else
|
||||||
#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
|
#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
|
||||||
#error "Need at least GCC 4.3 or newer"
|
#error "Need at least GCC 4.3 or newer"
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
#if (__GNUC__ < 3) || ((__GNUC__ == 3) && __GNUC_MINOR__ < 4)
|
|
||||||
#error "Need at least GCC 3.4 or newer"
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user