<html><head><base href="x-msg://102/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 2, 2012, at 5:49 AM, Schmiedlin, Joshua wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="Section1" style="page: Section1; "><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Hello,<o:p></o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">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?</div></div></div></blockquote><br></div><div>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.</div><div><br></div><div>Now, if you don't want to do that, you can modify lib/Frontend/InitHeaderSearch.cpp to teach Clang about QNX system header paths. </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">  </span>- Doug</div></body></html>