[cfe-dev] clang plugin

Daniel Dunbar daniel at zuster.org
Sun Apr 4 20:47:51 PDT 2010


On Sun, Apr 4, 2010 at 8:29 PM, William Lynch <wlynch at wlynch.cx> wrote:
> On Sat, Apr 3, 2010 at 7:54 AM, Christof Meerwald <cmeerw at cmeerw.org> wrote:
>> On Fri, 2 Apr 2010 11:05:40 +0900, Naoya Maruyama wrote:
>>> I'm developing a c-program tool with clang, and trying the
>>> PrintFunctionNames plugin. However, running a command loading plugin
>>> libraries doesn't seem to find plugins:
>>>
>>>  $ clang -cc1 -load path/to/libPrintFunctionNames.so -plugin help
>>> clang -cc1 plugins:
>>
>> I have come across the same problem recently. I think it's caused by the
>> plugin shared library using its own instance of the plugin registry instead
>> of the one from the clang binary. The way I fixed (or worked around) it on
>> my system was by changing autoconf/ExportMap.map (and rebuilding clang) as
>> follows:
>
> Just to verify though, shouldn't the following command print out the
> builtin plugins? Curently, on trunk, I'm seeing no plugins listed.
>
> $ clang -cc1 -plugin help

That only prints the loaded plugins. There is no automatic plugin
loading, so unless you specify -load, nothing will be loaded.

 - Daniel

>
> Thanks.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>




More information about the cfe-dev mailing list