Reputation: 1766
I have installed both llvm-10.0.0
and llvm-13.0.0
on an Ubuntu 20.04
machine. Typing e.g. clang --version
or clangd --version
always returns the 10.0.0
versions.
I want to use the 13.0.0
version as defualt.
How should I do?
Upvotes: 0
Views: 7005
Reputation: 13539
You can use alternatives to change the default version:
sudo update-alternatives --install \
/usr/bin/llvm-config llvm-config /usr/bin/llvm-config-13.0.0 200
......
Total example is here.
Upvotes: 2