<p>For running just the front end, you can just execute clang-cc.exe.  I don't know how much of clang.exe works on Windows.  A quick look (trying clang -c somefile.cpp) showed:<br> <br>clang: error: unable to execute command: program not executable<br>
clang: error: assembler command failed due to signal 1 (use -v to see invocation)<br> <br>I only use the front end, clang-cc now.<br> <br>I have a patch for having it find the Visual Studio headers via the environment, but apparently it's still under discussion/review.  I've enclosed it, though it's probably a bit stale by now.<br>
 <br>Otherwise, for now, I would use the -I option, or possibly the CPLUS_INCLUDE_PATH or C_INCLUDE_PATH variables.</p>
<p>-John<br><br></p>
<div class="gmail_quote">On Tue, Sep 29, 2009 at 12:11 PM, Joel Klein <span dir="ltr"><<a href="mailto:jfklein@wolfram.com">jfklein@wolfram.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">I'm compiling clang on Windows with Visual Studio, and wondering how to<br>take this parenthetical comment from the "Getting Started" page<br>
(<a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a>):<br><br>Alternatively, build the "clang" project for the compiler driver (note<br>that the driver is currently broken on Windows), or the "ALL_BUILD"<br>
project to build everything, including tools.<br><br>In my build, I notice clang can't find the standard headers.  Is that<br>what's meant by the driver is currently broken?<br><br>Do I need to explicitly tell clang where to look (with -I), or is there<br>
a way to configure the include path so that clang.exe doesn't need<br>explicit -I options?<br><font color="#888888"><br>--<br>Joel Klein<br>Kernel Developer, Wolfram Research, Inc.<br><br>_______________________________________________<br>
cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</font></blockquote></div><br><br clear="all">
<div></div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br>