mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-03 23:24:17 +08:00
78b1e0340e
Debian stable and Fedora do not package the required version for intel-clc. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18788>
20 lines
528 B
Bash
20 lines
528 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
wget https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v13.0.0.tar.gz
|
|
tar -xvf v13.0.0.tar.gz && rm v13.0.0.tar.gz
|
|
|
|
mkdir SPIRV-LLVM-Translator-13.0.0/build
|
|
pushd SPIRV-LLVM-Translator-13.0.0/build
|
|
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
|
|
ninja
|
|
ninja install
|
|
# For some reason llvm-spirv is not installed by default
|
|
ninja llvm-spirv
|
|
cp tools/llvm-spirv/llvm-spirv /usr/bin/
|
|
popd
|
|
|
|
du -sh SPIRV-LLVM-Translator-13.0.0
|
|
rm -rf SPIRV-LLVM-Translator-13.0.0
|