diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-11-29 14:44:46 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-11-29 14:50:19 +0000 |
commit | bc849885ddaf0964da7cc981856ccab561c5b7a9 (patch) | |
tree | 4db107ff3c0e2dedc80d3d6cc2e3bc8fd5476a31 /tests/gem_gtt_speed.c | |
parent | e6d19e8f713760aa265c4cad1e028dcfa9f9104e (diff) |
igt/gem_gtt_speed: Spare clang the embarrassment
Clang pretends to be GCC and then dies on GCC pragma.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_gtt_speed.c')
-rw-r--r-- | tests/gem_gtt_speed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_gtt_speed.c b/tests/gem_gtt_speed.c index baeb8f69..3d726c4e 100644 --- a/tests/gem_gtt_speed.c +++ b/tests/gem_gtt_speed.c @@ -50,7 +50,7 @@ static double elapsed(const struct timeval *start, return (1e6*(end->tv_sec - start->tv_sec) + (end->tv_usec - start->tv_usec))/loop; } -#if defined(__x86_64__) +#if defined(__x86_64__) && !defined(__clang__) #pragma GCC push_options #pragma GCC target("sse4.1") #include <smmintrin.h> |