Last active
April 24, 2019 13:53
-
-
Save odedlaz/64f820fe937400903438cadb03f6bba3 to your computer and use it in GitHub Desktop.
Install Clang 6.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
code_name=$(lsb_release -c | awk '{ print $2}') | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - | |
apt-add-repository "deb http://apt.llvm.org/$code_name/ llvm-toolchain-$code_name-6.0 main" | |
apt-get update | |
apt-get install -y clang-6.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment