Add support for installing 32-bit SPIR-V LLVM libraries when PIKA_BUILD_ARCH is i386 in main.sh

This commit is contained in:
ferreo 2024-11-26 11:54:47 +00:00
parent d08a069923
commit d7d151eec0

View File

@ -8,6 +8,13 @@ source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch echo "$PIKA_BUILD_ARCH" > pika-build-arch
if [[ "$PIKA_BUILD_ARCH" == "i386" ]]
then
wget http://ftp.us.debian.org/debian/pool/main/s/spirv-llvm-translator-19/libllvmspirvlib19.1_19.1.0-1_i386.deb -O ./32bit-spirv.deb
wget http://ftp.us.debian.org/debian/pool/main/s/spirv-llvm-translator-19/libllvmspirvlib-19-dev_19.1.0-1_i386.deb -O ./32bit-spirv-dev.deb
apt install -y ./32bit-spirv-dev.deb ./32bit-spirv.deb
fi
# Clone Upstream # Clone Upstream
git clone https://gitlab.freedesktop.org/mesa/mesa -b mesa-"$VERSION" git clone https://gitlab.freedesktop.org/mesa/mesa -b mesa-"$VERSION"
cp -rvf ./debian ./mesa/ cp -rvf ./debian ./mesa/