[cfe-dev] MSVC compatible driver proposal

Chandler Carruth chandlerc at google.com
Thu Jul 25 09:32:03 PDT 2013


On Thu, Jul 25, 2013 at 9:20 AM, Kim Gräsman <kim.grasman at gmail.com> wrote:

> Hi Reid, Hans,
>
> On Thu, Jun 27, 2013 at 12:56 AM, Reid Kleckner <rnk at google.com> wrote:
> > I'd like there to be a cl.exe compatible clang driver.  I think the best
> way
> > for this to work is to have the existing clang driver detect when it's
> being
> > invoked as cl.exe, similar to how clang++ vs. clang works today.  For
> > testing, there should be a -ccc-msvc option which turns on the same
> > behavior [...]
>
> I don't understand the exact responsibilities of the driver and its
> different modes, but would the presence of a cl.exe-compatible
> driver/mode allow Clang tools to accept cl.exe command-lines?
>

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.


>
> I'm curious, because it should be pretty easy to build a
> compile_commands.json from Visual Studio project files, and that in
> turn would enable tools to run on MSVC-ish code with or without CMake.
>

This would be *wonderful*. Especially if it could be effectively integrated
with visual studio itself so that it is updated nicely.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130725/9f2495c4/attachment.html>


More information about the cfe-dev mailing list