From 1c8ed534b3e7bfec65d0724b53cd6f5f6c19c832 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 9 Jun 2012 17:29:54 +0200 Subject: [PATCH] Fix check for minimum GCC version. --- src/lj_arch.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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