aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2015-07-08 18:36:37 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2015-07-08 18:36:37 +0000
commitb775c213c272f55c4750338fd483275c408aab7a (patch)
tree8ee95a95f85fa2724caf647a8f7f833a7a1c6314 /lib
parent8954a9a4e602e46c5eb218ebc5b020185bbc435b (diff)
downloadsrc-b775c213c272f55c4750338fd483275c408aab7a.tar.gz
src-b775c213c272f55c4750338fd483275c408aab7a.zip
only enable immintrin when clang is used. The base gcc does not support it.
Reviewed by: delphij
Notes
Notes: svn path=/head/; revision=285284
Diffstat (limited to 'lib')
-rw-r--r--lib/liblzma/config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/liblzma/config.h b/lib/liblzma/config.h
index 1d0f0bc7a692..7dfc08912f2b 100644
--- a/lib/liblzma/config.h
+++ b/lib/liblzma/config.h
@@ -150,7 +150,8 @@
#define HAVE_ICONV 1
/* Define to 1 if you have the <immintrin.h> header file. */
-#if defined(__FreeBSD__) && defined(__amd64__)
+/* FreeBSD - only with clang because the base gcc does not support it */
+#if defined(__clang__) && defined(__FreeBSD__) && defined(__amd64__)
#define HAVE_IMMINTRIN_H 1
#endif