svn commit: r545344 - head/databases/tiledb/files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Aug 19 16:18:25 UTC 2020
Author: sunpoet
Date: Wed Aug 19 16:18:22 2020
New Revision: 545344
URL: https://svnweb.freebsd.org/changeset/ports/545344
Log:
Fix build with Clang 9+
Added:
head/databases/tiledb/files/patch-external-src-blosc-shuffle.cc (contents, props changed)
Added: head/databases/tiledb/files/patch-external-src-blosc-shuffle.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/tiledb/files/patch-external-src-blosc-shuffle.cc Wed Aug 19 16:18:22 2020 (r545344)
@@ -0,0 +1,26 @@
+--- external/src/blosc/shuffle.cc.orig 2020-07-31 17:44:09 UTC
++++ external/src/blosc/shuffle.cc
+@@ -158,6 +158,8 @@ __cpuidex(int32_t cpuInfo[4], int32_t function_id, int
+ /* Reads the content of an extended control register.
+ https://software.intel.com/en-us/articles/how-to-detect-new-instruction-support-in-the-4th-generation-intel-core-processor-family
+ */
++
++#if defined(__clang_major__) && __clang_major__ < 9
+ static inline uint64_t
+ _xgetbv(uint32_t xcr) {
+ uint32_t eax, edx;
+@@ -173,6 +175,7 @@ _xgetbv(uint32_t xcr) {
+ );
+ return ((uint64_t)edx << 32) | eax;
+ }
++#endif
+
+ #endif /* defined(_MSC_FULL_VER) */
+
+@@ -385,4 +388,4 @@ unshuffle(const size_t bytesoftype, const size_t block
+ (host_implementation.unshuffle)(bytesoftype, blocksize, _src, _dest);
+ }
+
+-}
+\ No newline at end of file
++}
More information about the svn-ports-all
mailing list