From: Mike Pall Date: Sat, 9 Jun 2012 15:29:54 +0000 (+0200) Subject: Fix check for minimum GCC version. X-Git-Tag: v2.0.0-beta11~194 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c8ed534b3e7bfec65d0724b53cd6f5f6c19c832;p=thirdparty%2FLuaJIT.git Fix check for minimum GCC version. --- diff --git a/src/lj_arch.h b/src/lj_arch.h index ce169b33..5f788502 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h @@ -212,7 +212,11 @@ /* Check for minimum required compiler versions. */ #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 #error "Need at least GCC 4.0 or newer" #endif @@ -220,14 +224,10 @@ #if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 2) #error "Need at least GCC 4.2 or newer" #endif -#elif LJ_TARGET_PPC +#else #if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3) #error "Need at least GCC 4.3 or newer" #endif -#else -#if (__GNUC__ < 3) || ((__GNUC__ == 3) && __GNUC_MINOR__ < 4) -#error "Need at least GCC 3.4 or newer" -#endif #endif #endif