On 2015-10-15 5:30 AM, Nicholas Nethercote wrote:
On Wed, Oct 14, 2015 at 6:07 PM, Ehsan Akhgari <ehsan.akhg...@gmail.com> wrote:
On Linux, most other recent versions of clang should work too, such as the
one you usually get from your distro, provided that the dev package for
LLVM/Clang has been installed.
Is there an easy way to determine if that package has been installed?
The easiest way is to turn it on in a build and see if the build
succeeds. The plugin is built before all other C++ code and it also has
unit tests so if your build works, then all is good!
Without building, the easiest way is to see if the llvm-config program
exists on your system. If the answer is yes, then there is a good
chance that something like the below is the correct check (but I haven't
tested this very extensively):
echo '#include "clang/AST/ASTConsumer.h"' > test.cpp
clang -c `llvm-config --cxxflags` test.cpp
And if it's not installed, is there an easy way to install it?
The answer there depends on the distro. I think on Ubuntu it is
libclang-devel, I think.
The other option is using llvm.org binaries. Or the ones we have in
tooltool.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform