[PATCH] D23454: [Driver] Set the default clang driver mode based on the executable
Zachary Turner via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 12 10:42:05 PDT 2016
zturner created this revision.
zturner added a reviewer: rnk.
zturner added a subscriber: cfe-commits.
If `--driver-mode` is passed in one or more times, it will overwrite the default by this patch. This patch only makes it so that if NO `--driver-mode` is passed in, we try to do better than saying "must be GCC".
This is one of two steps necessary to get clang-tidy working on Windows. However, despite that, this change seems correct even in the general sense. If a `--driver-mode` option is not passed in, we should make the most informed possible decision we can.
https://reviews.llvm.org/D23454
Files:
include/clang/Driver/Driver.h
lib/Driver/Driver.cpp
unittests/Driver/ToolChainTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23454.67853.patch
Type: text/x-patch
Size: 5172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160812/1e4527f5/attachment-0001.bin>
More information about the cfe-commits
mailing list