[cfe-dev] Clang and QNX
jschmi10 at harris.com
Tue Jan 3 08:58:54 PST 2012
Thanks Doug. I will try both methods when I have a chance... If I modify InitHeaderSearch is it worthwhile to provide the patch back to Clang?
From: Douglas Gregor [mailto:dgregor at apple.com]
Sent: Tuesday, January 03, 2012 11:57 AM
To: Schmiedlin, Joshua
Cc: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] Clang and QNX
On Jan 2, 2012, at 5:49 AM, Schmiedlin, Joshua wrote:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev