diff options
author | luigi <luigi@FreeBSD.org> | 2015-07-08 18:36:37 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2015-07-08 18:36:37 +0000 |
commit | aa3c990c7d11ba901b301e1e445dfdfce2ffbf03 (patch) | |
tree | 8ee95a95f85fa2724caf647a8f7f833a7a1c6314 | |
parent | c17f8bfdd50cd481c229672bc267cb3c845ace07 (diff) | |
download | FreeBSD-src-aa3c990c7d11ba901b301e1e445dfdfce2ffbf03.zip FreeBSD-src-aa3c990c7d11ba901b301e1e445dfdfce2ffbf03.tar.gz |
only enable immintrin when clang is used. The base gcc does not support it.
Reviewed by: delphij
-rw-r--r-- | lib/liblzma/config.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/liblzma/config.h b/lib/liblzma/config.h index 1d0f0bc..7dfc089 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 |