[cfe-dev] compiling plugins

Nico Weber thakis at chromium.org
Fri Jul 13 01:59:39 PDT 2012


Hi Thiago,

On Fri, Jul 13, 2012 at 4:49 AM, Thiago Farina <tfarina at chromium.org> wrote:
> Hi,
>
> I'm trying to build a chromium plugin

you can use tools/clang/scripts/update.sh --force-local-build (in the
chromium tree) to build the plugin locally if you want. This is
documented on the chromium wiki somewhere.

> , but this is valid for clang-check too.
>
> I'm getting the following error when running "make" in
> ~/llvm/tools/clang/tools/clang-check or
> ~/llvm/tools/clang/tools/chrome-plugin:
>
> ../../../../Makefile.common:60: ../../../../Makefile.config: No such
> file or directory
> ../../../../Makefile.common:68: /Makefile.rules: No such file or directory
> make: *** No rule to make target `/Makefile.rules'.  Stop.
>
> I guess I want to use ninja here instead of make, but chrome-plugin
> does not have cmake files nor build.ninja just a Makefile. Clang-check
> has a CMakeLists.txt, but I'm unsure
> how to generate the ninja files from it.
>
> Help?

http://www.hanshq.net/clang_plugins.html has some notes on how to
build plugins out-of-tree.

Nico



More information about the cfe-dev mailing list