setup: detect GCC 6.0

This commit is contained in:
Joonas Sarajärvi 2016-02-04 19:42:25 +02:00 committed by Christophe Riccio
parent 6ee8b03063
commit bc09ecf898
2 changed files with 6 additions and 0 deletions

View File

@ -151,6 +151,7 @@
#define GLM_COMPILER_GCC51 0x02000300
#define GLM_COMPILER_GCC52 0x02000400
#define GLM_COMPILER_GCC53 0x02000500
#define GLM_COMPILER_GCC60 0x02000600
// CUDA
#define GLM_COMPILER_CUDA 0x10000000
@ -312,6 +313,8 @@
# define GLM_COMPILER (GLM_COMPILER_GCC52)
# elif (__GNUC__ == 5) && (__GNUC_MINOR__ >= 3)
# define GLM_COMPILER (GLM_COMPILER_GCC53)
# elif (__GNUC__ == 6) && (__GNUC_MINOR__ >= 0)
# define GLM_COMPILER (GLM_COMPILER_GCC60)
# else
# define GLM_COMPILER (GLM_COMPILER_GCC)
# endif

View File

@ -71,6 +71,9 @@ int test_compiler()
case GLM_COMPILER_GCC53:
std::printf("GLM_COMPILER_GCC53\n");
break;
case GLM_COMPILER_GCC60:
std::printf("GLM_COMPILER_GCC60\n");
break;
default:
std::printf("GCC version not detected\n");
Error += 1;