]> granicus.if.org Git - clang/commit
clang-cl: implement /fallback mode
authorHans Wennborg <hans@hanshq.net>
Thu, 19 Sep 2013 20:32:16 +0000 (20:32 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 19 Sep 2013 20:32:16 +0000 (20:32 +0000)
commitc8ba0a0acd30f0b56d08a3a0947f68ac01a40730
tree2efd7f2be5797d86c41938e7a997bcb8e9546c99
parentaf1d28f3fdafd05ac4f2a761b3b46b32b4267da2
clang-cl: implement /fallback mode

When this flag is enabled, clang-cl falls back to cl.exe if it
cannot compile the code itself for some reason.

The idea is to use this to help build projects that almost compile
with clang-cl, except for some files that can then be built with
the fallback mechanism.

Differential Revision: http://llvm-reviews.chandlerc.com/D1711

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191034 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CLCompatOptions.td
include/clang/Driver/Job.h
include/clang/Driver/Tool.h
lib/Driver/Job.cpp
lib/Driver/Tools.cpp
lib/Driver/Tools.h
test/Driver/cl-fallback.c [new file with mode: 0644]