From c3c180559a4d245258b03f39b1245b790d1baed8 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Wed, 11 Jun 2014 16:56:16 +0200 Subject: [PATCH] Fixed instruction set detection with Clang #158 --- glm/detail/setup.hpp | 2 +- readme.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index 10ecc937..c982c469 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -579,7 +579,7 @@ # endif #elif((GLM_PLATFORM & GLM_PLATFORM_APPLE) && (GLM_COMPILER & GLM_COMPILER_GCC)) # define GLM_ARCH GLM_ARCH_PURE -#elif(((GLM_COMPILER & GLM_COMPILER_GCC) && (defined(__i386__) || defined(__x86_64__))) || (GLM_COMPILER & GLM_COMPILER_LLVM_GCC)) +#elif(((GLM_COMPILER & GLM_COMPILER_GCC) && (defined(__i386__) || defined(__x86_64__))) || (GLM_COMPILER & GLM_COMPILER_LLVM_GCC) || (GLM_COMPILER & GLM_COMPILER_CLANG)) # if defined(__AVX2__) # define GLM_ARCH (GLM_ARCH_AVX2 | GLM_ARCH_AVX | GLM_ARCH_SSE4 | GLM_ARCH_SSE3 | GLM_ARCH_SSE2) # elif defined(__AVX__) diff --git a/readme.txt b/readme.txt index cfafddb8..416f3619 100644 --- a/readme.txt +++ b/readme.txt @@ -46,6 +46,7 @@ GLM 0.9.5.4: 2014-0X-XX - Fixed builtin GLM_ARCH_SSE4 #204 - Optimized Quaternion vector rotation #205 - Fixed missing doxygen @endcond tag #211 +- Fixed instruction set detection with Clang #158 ================================================================================ GLM 0.9.5.3: 2014-04-02