aboutsummaryrefslogtreecommitdiff
path: root/extra/spirv-llvm-translator/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/spirv-llvm-translator/build')
-rwxr-xr-xextra/spirv-llvm-translator/build11
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/spirv-llvm-translator/build b/extra/spirv-llvm-translator/build
new file mode 100755
index 00000000..43122323
--- /dev/null
+++ b/extra/spirv-llvm-translator/build
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv \
+ -DLLVM_SPIRV_INCLUDE_TESTS=OFF
+
+cmake --build build
+cmake --install build