[PATCH] [Driver] Start work on an MSVC compatible clang-cl driver

Reid Kleckner rnk at google.com
Wed Jun 26 16:42:45 PDT 2013


We detect this compatibility mode with a flag and based on argv[0]
ending in "cl" for clang-cl.exe or just cl.exe.

Once we've detected this mode, we try to parse arguments as MSVC style
arguments before falling back to parsing gcc style arguments.

Conflicting options can be passed using an -Xclang-driver escape.

High level discussion is on cfe-dev:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030404.html

http://llvm-reviews.chandlerc.com/D1048

Files:
  include/clang/Driver/Driver.h
  include/clang/Driver/MSVCOptions.td
  include/clang/Driver/Options.h
  include/clang/Driver/Options.td
  lib/Driver/Driver.cpp
  lib/Driver/DriverOptions.cpp
  lib/Driver/ToolChains.h
  lib/Driver/WindowsToolChain.cpp
  lib/Headers/CMakeLists.txt
  lib/Headers/msvcrt_picker.h
  test/Driver/ccc-msvc.cpp
  tools/driver/CMakeLists.txt
  tools/driver/clang_symlink.cmake
  tools/driver/driver.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1048.1.patch
Type: text/x-patch
Size: 22856 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130626/ff4ac24e/attachment.bin>


More information about the cfe-commits mailing list