Skip to content

Instantly share code, notes, and snippets.

@binshengliu
Created May 14, 2019 01:58
Show Gist options
  • Save binshengliu/3d3fba46471d1fa42fa5a2070abf52e0 to your computer and use it in GitHub Desktop.
Save binshengliu/3d3fba46471d1fa42fa5a2070abf52e0 to your computer and use it in GitHub Desktop.
Install Clang-8 on Debian Stretch
sudo echo -e 'deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-8 main\ndeb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-8 main\n' >> /etc/apt/sources.list
sudo aptitude install clang-8 clang-tools-8 clang-format-8
sudo aptitude install libc++-8-dev libclang-8-dev libc++abi-8-dev
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 100
sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-8 100
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-8 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment