[Patch] Add a cl.exe compatible driver mode

Reid Kleckner rnk at google.com
Fri Jul 19 11:39:06 PDT 2013


+  /// Whether the drvier was invoked as a C++ compiler
+  /// (e.g. clang++ or clang-cl).
+  bool CCCIsCXX() const { return Mode == GXXMode || Mode == CLMode; }

Looks good, but what needs this?  My understanding is that all of clang,
cl, and gcc can be invoked on .c or .cpp files and they will auto-detect
the language from the extension.  The main behavior difference is whether
to link the standard C++ library.


On Fri, Jul 19, 2013 at 2:31 PM, Hans Wennborg <hans at chromium.org> wrote:

> Hi all,
>
> The attached patch adds a cl.exe compatible mode to the driver. It
> doesn't actually do anything yet, but the plan is to make it accept
> cl.exe style command line flags as discussed in [1].
>
> Please take a look!
>
> Thanks,
> Hans
>
> [1]. http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030439.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130719/2d20594a/attachment.html>


More information about the cfe-commits mailing list