[arch-commits] Commit in spirv-tools/trunk (PKGBUILD)

Laurent Carlier lcarlier at archlinux.org
Fri Jul 20 11:38:43 UTC 2018


    Date: Friday, July 20, 2018 @ 11:38:42
  Author: lcarlier
Revision: 329090

upgpkg: spirv-tools 2018.4-1

upstream update 2018.4

Modified:
  spirv-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-20 09:53:30 UTC (rev 329089)
+++ PKGBUILD	2018-07-20 11:38:42 UTC (rev 329090)
@@ -2,8 +2,8 @@
 # Maintainer: Laurent Carlier <lordheavym at gmail.com>
 
 pkgname=spirv-tools
-pkgver=2018.2
-_spirv_headers_commit=3a4dbdde9a9b2cf23736694ba70262dce27fbeaa
+pkgver=2018.4
+_spirv_headers_commit=ff684ffc6a35d2a58f0f63108877d0064ea33feb
 pkgrel=1
 pkgdesc="API and commands for processing SPIR-V modules"
 arch=('x86_64')
@@ -17,20 +17,19 @@
 sha256sums=('SKIP'
             'SKIP')
 
-#prepare() {
-#  cd SPIRV-Tools
-#  # Fix build with GCC 7
-#  git cherry-pick -n 01b28750bf8ecda48e0f2f6a16d0363450e205d9
-#}
-
 build() {
   cd SPIRV-Tools
 
   rm -rf build && mkdir build && cd build
+  # Disable werror or it fail to build with:
+  # text_handler.cpp: In member function ‘spv_result_t libspirv::AssemblyContext::binaryEncodeString(const char*, spv_instruction_t*)’:
+  # text_handler.cpp:316:10: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its 
+  # length [-Wstringop-truncation]
   cmake .. \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DCMAKE_INSTALL_LIBDIR=lib \
       -DCMAKE_BUILD_TYPE=Release \
+      -DSPIRV_WERROR=Off \
       -DSPIRV-Headers_SOURCE_DIR=${srcdir}/SPIRV-Headers
   make
 }



More information about the arch-commits mailing list