[cfe-dev] Standalone tools

Jacob Carlborg doob at me.com
Sun Apr 27 07:09:18 PDT 2014


On 2014-04-26 23:11, Kim Gräsman wrote:
> Hi all,
>
> I'm one of the maintainers of IWYU, a tool for cleaning up #include
> dependencies.
>
> We've experimented with releasing IWYU binaries for a select number of
> platforms, but people are having problems because Clang is looking for
> headers relative to the executable. There have been reports that
> moving IWYU into the Clang install directory makes things work, but
> this is intrusive and a number of users don't even have Clang
> installed.
>
> Is there a strategy for how to package up a standalone Clang tool so
> it can be distributed? Do/can we include the headers from
> ...lib/clang/3.5.0/include? Anything else necessary?

I'm having the same problem. Currently I'm telling my users to 
separately install Clang. For the include files, it also work to copy 
them to the standard header locations.

It would be nice if the header files could be embedded in the tool (the 
executable).

-- 
/Jacob Carlborg




More information about the cfe-dev mailing list