summaryrefslogtreecommitdiffstats
path: root/source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild')
-rwxr-xr-xsource/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild6
1 files changed, 6 insertions, 0 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..aa32098ff 100755
--- a/source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild
+++ b/source/l/spirv-llvm-translator/spirv-llvm-translator.SlackBuild
@@ -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
@@ -97,6 +102,7 @@ cd build
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
+ -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=$TMP/SPIRV-LLVM-Translator-$VERSION/SPIRV-Headers \
..
make $NUMJOBS || make || exit 1
make $NUMJOBS llvm-spirv || make llvm-spirv || exit 1