Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/setup-debian-buster.sh
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
# Install llvm-8 and clang-10 | # Install llvm-8 and clang-10 | ||||
apt-key add "${TEAMCITY_DIR}"/llvm.pub | apt-key add "${TEAMCITY_DIR}"/llvm.pub | ||||
add-apt-repository "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-8 main" | add-apt-repository "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-8 main" | ||||
add-apt-repository "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-10 main" | add-apt-repository "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-10 main" | ||||
apt-get update | apt-get update | ||||
LLVM_PACKAGES=( | LLVM_PACKAGES=( | ||||
clang-8 | |||||
clang-10 | clang-10 | ||||
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 | # Make sure clang-10 has highest priority | ||||
update-alternatives --install /usr/bin/clang++ clang++ "$(command -v clang++-8)" 100 | update-alternatives --install /usr/bin/clang clang "$(command -v clang-10)" 100 | ||||
update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer "$(command -v llvm-symbolizer-8)" 100 | update-alternatives --install /usr/bin/clang++ clang++ "$(command -v clang++-10)" 100 | ||||
# Use a lower priority to keep clang-8 the default | update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer "$(command -v llvm-symbolizer-10)" 00 | ||||
update-alternatives --install /usr/bin/clang clang "$(command -v clang-10)" 50 | |||||
update-alternatives --install /usr/bin/clang++ clang++ "$(command -v clang++-10)" 50 | |||||
update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer "$(command -v llvm-symbolizer-10)" 50 | |||||
# 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) | ||||
# Python library for interacting with teamcity | # Python library for interacting with teamcity | ||||
pip3 install teamcity-messages | pip3 install teamcity-messages | ||||
# Python library for merging nested structures | # Python library for merging nested structures | ||||
Show All 14 Lines |