mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
setup: detect GCC 6.0
This commit is contained in:
parent
8f0d854605
commit
f0acbbd4ac
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user