sync with OpenBSD -current
This commit is contained in:
parent
b5b25afdb8
commit
2c72e27ed2
147 changed files with 41128 additions and 10 deletions
32
lib/libva/.github/workflows/install-clang.sh
vendored
Normal file
32
lib/libva/.github/workflows/install-clang.sh
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if (( $# != 1 )); then
|
||||
echo Script requires one argument - the clang version to be installed
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! which $CC >/dev/null 2>&1; then
|
||||
case $DISTRO in
|
||||
"ubuntu-22.04") distro_name=jammy;;
|
||||
"ubuntu-20.04") distro_name=focal;;
|
||||
*)
|
||||
echo "Unknown distribution $DISTRO"
|
||||
exit 1
|
||||
esac
|
||||
case $1 in
|
||||
"14" | "15") llvm_version=$1;;
|
||||
*)
|
||||
echo "Unknown llvm version $1"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
sources="deb [trusted=yes] http://apt.llvm.org/$distro_name/ llvm-toolchain-$distro_name-$llvm_version main"
|
||||
|
||||
echo "clang-$llvm_version missed in the image, installing from llvm"
|
||||
echo "$sources" | sudo tee -a /etc/apt/sources.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends clang-$llvm_version
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue