summaryrefslogtreecommitdiffstats
path: root/config.tests/x86_simd/main.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-11-15 21:31:30 -0800
committerThiago Macieira <thiago.macieira@intel.com>2017-11-30 08:30:42 +0000
commite32812d1d2e59e17697c8b8c6375a18556175b54 (patch)
tree5be8d49424d06ce8167ebd51ae6d740985f524b1 /config.tests/x86_simd/main.cpp
parente1600c1a73e0594f5fbea8f7341a9552d6ae3fbb (diff)
Centralize the x86 SIMD testing in one place
Since the x86_simd/main.cpp file already has all the source for each and every test anyway, just reuse it. Change-Id: I938b024e38bf4aac9154fffd14f779f450827fb9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'config.tests/x86_simd/main.cpp')
-rw-r--r--config.tests/x86_simd/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.tests/x86_simd/main.cpp b/config.tests/x86_simd/main.cpp
index 6005f5b023..8120cb9d3f 100644
--- a/config.tests/x86_simd/main.cpp
+++ b/config.tests/x86_simd/main.cpp
@@ -41,7 +41,7 @@
#include <immintrin.h>
#define T(x) (QT_COMPILER_SUPPORTS_ ## x)
-#if !defined(__INTEL_COMPILER) && !defined(_MSC_VER)
+#if !defined(__INTEL_COMPILER) && !defined(_MSC_VER) && !defined(NO_ATTRIBUTE)
/* GCC requires attributes for a function */
# define attribute_target(x) __attribute__((__target__(x)))
#else