Getting the path to Clang

Sylvestre Ledru sylvestre at
Fri Jan 20 16:21:04 UTC 2017

Le 20/01/2017 à 07:21, Félix Cloutier a écrit :
> Hi all,
> I’m the owner of a project that requires Clang in order to build C files to LLVM bitcode. Currently, we’re trying to invoke "clang" and "clang++" directly; however, on systems where users install clang-3.9, the compiler names are clang-3.9 and clang++-3.9.
> Is there any hint anywhere (for instance, in a CMake file) that the name of the Clang compiler is clang-3.9, or are users expected to make a clang symlink?
just pass CC=clang-3.9 and/or CXX=clang++-3.9 to your compiler
otherwise, we provide a clang default package but it will point to 3.8
in Debian. points to 4.0


More information about the Pkg-llvm-team mailing list