Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 2020 16:18:22 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r545344 - head/databases/tiledb/files
Message-ID:  <202008191618.07JGIMKT066319@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
++}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008191618.07JGIMKT066319>