This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Set the default clang driver mode based on the executable
ClosedPublic

Authored by zturner on Aug 12 2016, 10:42 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

zturner updated this revision to Diff 67853.Aug 12 2016, 10:42 AM
zturner retitled this revision from to [Driver] Set the default clang driver mode based on the executable.
zturner updated this object.
zturner added a reviewer: rnk.
zturner added a subscriber: cfe-commits.
rnk accepted this revision.Aug 12 2016, 10:47 AM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Aug 12 2016, 10:47 AM
This revision was automatically updated to reflect the committed changes.