How to change the default version of the llvm tools?

Sylvestre Ledru sylvestre at debian.org
Wed Apr 26 12:47:20 UTC 2017


Hello,



Le 26/04/2017 à 14:37, blastmaster a écrit :
> Hi everyone,
>
> I've a question especially concerning the clang tools.
> I've running a debian sid distribution and have different versions of
> clang installed see the dpkg-query listing below.
> Now I've the problem that my OS uses obviously clang-3.8 as default.
>
> $ readlink $(which clang-check)
> ../lib/llvm-3.8/bin/clang-check
>
> As a result some tools which are just available in newer version are not
> in the PATH despite they are installed.
> Is there a way to change that or switch between the versions? Or is
> there a reason behind which I don't see?
>
for clang, just use CC=clang-X.Y as variable to build.
For clang-format, clang-check, etc, you will have to write a path
detection macro (or hardcode the path).

S





More information about the Pkg-llvm-team mailing list