diff options
Diffstat (limited to 'source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild')
-rwxr-xr-x | source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild b/source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild index 78ca6cab2..a4c6b3249 100755 --- a/source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild +++ b/source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2021 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2021, 2023 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -83,6 +83,11 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ +# This git pull needs a specific set of headers. These were obtained by letting +# the build download them, and then tarring them up and pointing to them with +# the -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR option below. +tar xf $CWD/SPIRV-Headers.tar.lz + # Build and install: mkdir -p build cd build @@ -95,8 +100,9 @@ cd build -DSYSCONF_INSTALL_DIR=/etc \ -DINCLUDE_INSTALL_DIR=/usr/include \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DBUILD_SHARED_LIBS=ON \ -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=$TMP/SPIRV-LLVM-Translator-$VERSION/SPIRV-Headers \ + -DBUILD_SHARED_LIBS=ON \ .. make $NUMJOBS || make || exit 1 make $NUMJOBS llvm-spirv || make llvm-spirv || exit 1 |