<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 25, 2013 at 9:20 AM, Kim Gräsman <span dir="ltr"><<a href="mailto:kim.grasman@gmail.com" target="_blank" class="cremed">kim.grasman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":5n0" style="overflow:hidden">Hi Reid, Hans,<br>
<div class="im"><br>
On Thu, Jun 27, 2013 at 12:56 AM, Reid Kleckner <<a href="mailto:rnk@google.com" class="cremed">rnk@google.com</a>> wrote:<br>
> I'd like there to be a cl.exe compatible clang driver. I think the best way<br>
> for this to work is to have the existing clang driver detect when it's being<br>
> invoked as cl.exe, similar to how clang++ vs. clang works today. For<br>
> testing, there should be a -ccc-msvc option which turns on the same<br>
</div>> behavior [...]<br>
<br>
I don't understand the exact responsibilities of the driver and its<br>
different modes, but would the presence of a cl.exe-compatible<br>
driver/mode allow Clang tools to accept cl.exe command-lines?<br></div></blockquote><div><br></div><div>Absolutely. Note that there is probably some work to do on the tooling layer to get all of this to work -- we haven't tested it that I know -- so it might be something that would be good to play with and post patches if you hit issues.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":5n0" style="overflow:hidden">
<br>
I'm curious, because it should be pretty easy to build a<br>
compile_commands.json from Visual Studio project files, and that in<br>
turn would enable tools to run on MSVC-ish code with or without CMake.</div></blockquote></div><br>This would be *wonderful*. Especially if it could be effectively integrated with visual studio itself so that it is updated nicely.</div>
</div>