chisophugis/clang_plugin_example — pull request #1 by jeremy-w (2012-03-17 04:17:41+00:00)
Title: Build under Darwin (OS X); handle headers/libs outside standard paths; run demo via Makefile

OS X requires different LDFLAGS than Linux.

I updated the Makefile to cope with using non-system-installed headers/libs/binaries. This is important if you're working from an LLVM/clang checkout.

I was also able to incorporate the arg-building logic (-Xclang all the things!) into the Makefile to run it directly on the .cpp file.