[cfe-dev] Clang and QNX

Douglas Gregor dgregor at apple.com
Tue Jan 3 08:56:35 PST 2012

On Jan 2, 2012, at 5:49 AM, Schmiedlin, Joshua wrote:

> Hello,
> I would like to build clang on Windows so that It knows where my QNX standard headers are.  I don’t intend to create usable binaries, but ultimately I would like to be able to use clang to run static analysis on my code base.  I planned on using cmake to create the visual studio projects or mingw make files.  What if anything would I need to modify in order for Clang to know where all the QNX stuff lives?

The simplest way is to simply use Clang's command-line options to turn off all of the normal system header includes (-nostdinc) and then add -isystem <path> and -I <path> options that point to your QNX standard headers.

Now, if you don't want to do that, you can modify lib/Frontend/InitHeaderSearch.cpp to teach Clang about QNX system header paths. 

	- Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120103/8fed5d0d/attachment.html>

More information about the cfe-dev mailing list