[cfe-dev] Using Clang plugins with release version of clang on OS X

Nikita Zhuk nikita at zhuk.fi
Sun Jun 29 10:37:30 PDT 2014


Hi,

I’m looking into writing my own Clang plugin which would do some analysis on ObjC code and write out results into an external file during the compilation step. I successfully followed the sample code given here http://clang.llvm.org/docs/ClangPlugins.html and got my plugin working with the trunk clang version which I built on my machine. However, I’m getting a dyld error when trying to load that plugin into default clang version which is shipped with OS X dev tools (Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn). The issue I’m seeing is described here: http://llvm.org/bugs/show_bug.cgi?id=13546

Are Clang plugins being limited to only manual clang builds, or am I missing something here? My goal is to distribute this plugin to other members of my team so they could use it as part of normal Xcode workflow.

Best regards,
Nikita Zhuk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140629/a7704d24/attachment.html>


More information about the cfe-dev mailing list