On 2014-12-15 10:08 PM, Bobby Holley wrote:
On Sun, Dec 14, 2014 at 3:28 PM, Ehsan Akhgari <ehsan.akhg...@gmail.com
<mailto:ehsan.akhg...@gmail.com>> wrote:

    In order to avoid burning the tree, if you are a clang user you can
    add ac_add_options --enable-clang-plugin to your mozconfig and make
    sure you are using a recent version of clang with the development
    headers and libraries installed (the binary packages of clang 3.5
    from llvm.org <http://llvm.org> should be sufficient for most
    people.)  Otherwise, please make sure to test your patches against
    the static analysis builders on the try server.


Is there a way to use clang-plugin with the clang that ships with XCode
on OSX?

Apple unfortunately doesn't ship the headers and libraries required to build against that clang, and if you try to compile the plugin against headers/libraries obtained from elsewhere there is a good chance that the plugin won't work, so your best bet is to download <http://llvm.org/releases/3.5.0/clang+llvm-3.5.0-macosx-apple-darwin.tar.xz> and extract it somewhere and point the CC, CXX and LLVMCONFIG variables to the binaries in that package in your .mozconfig.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to