Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/setup-debian-buster.sh
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
apt-get update | apt-get update | ||||
DEBIAN_FRONTEND=noninteractive apt-get install -y adoptopenjdk-8-hotspot | DEBIAN_FRONTEND=noninteractive apt-get install -y adoptopenjdk-8-hotspot | ||||
ln -s /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 /usr/lib/jvm/default-java | ln -s /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 /usr/lib/jvm/default-java | ||||
echo 'JAVA_HOME="/usr/lib/jvm/default-java"' >> /etc/environment | echo 'JAVA_HOME="/usr/lib/jvm/default-java"' >> /etc/environment | ||||
# Install llvm-8 | # Install llvm-8 | ||||
apt-key add "${TEAMCITY_DIR}"/llvm.pub | apt-key add "${TEAMCITY_DIR}"/llvm.pub | ||||
add-apt-repository "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-8 main" | add-apt-repository "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-8 main" | ||||
apt-get update | apt-get update | ||||
LLVM_PACKAGES=( | LLVM_PACKAGES=( | ||||
clang-8 | clang-8 | ||||
clang-format-8 | clang-format-8 | ||||
clang-tidy-8 | clang-tidy-8 | ||||
clang-tools-8 | clang-tools-8 | ||||
) | ) | ||||
DEBIAN_FRONTEND=noninteractive apt-get install -y $(join_by ' ' "${LLVM_PACKAGES[@]}") | DEBIAN_FRONTEND=noninteractive apt-get install -y $(join_by ' ' "${LLVM_PACKAGES[@]}") | ||||
update-alternatives --install /usr/bin/clang clang "$(command -v clang-8)" 100 | update-alternatives --install /usr/bin/clang clang "$(command -v clang-8)" 100 | ||||
update-alternatives --install /usr/bin/clang++ clang++ "$(command -v clang++-8)" 100 | update-alternatives --install /usr/bin/clang++ clang++ "$(command -v clang++-8)" 100 | ||||
# Use the mingw posix variant | # Use the mingw posix variant | ||||
update-alternatives --set x86_64-w64-mingw32-g++ $(command -v x86_64-w64-mingw32-g++-posix) | update-alternatives --set x86_64-w64-mingw32-g++ $(command -v x86_64-w64-mingw32-g++-posix) | ||||
update-alternatives --set x86_64-w64-mingw32-gcc $(command -v x86_64-w64-mingw32-gcc-posix) | update-alternatives --set x86_64-w64-mingw32-gcc $(command -v x86_64-w64-mingw32-gcc-posix) |