多clang环境设置默认clang版本

debian当前源内的clang版本为3.8,backport源里的版本为6.0

设置默认版本为6.0:

$ sudo update-alternatives --install \
	/usr/bin/clang++ clang++ /usr/lib/llvm-6.0/bin/clang++ 100
$ sudo update-alternatives --install \
    	/usr/bin/clang clang /usr/lib/llvm-6.0/bin/clang 100

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.