HomePhabricator

getClangStripDependencyFileAdjuster(): Do not remove -M args when using MSVC cl…

Authored by shivanshu3 on Tue, Sep 8, 1:17 AM.

Description

getClangStripDependencyFileAdjuster(): Do not remove -M args when using MSVC cl driver

MSVC's cl.exe has a few command line arguments which start with -M such
as "-MD", "-MDd", "-MT", "-MTd", "-MP".
These arguments are not dependency file generation related, and these
arguments were being removed by getClangStripDependencyFileAdjuster()
which was wrong.

Differential revision: https://reviews.llvm.org/D86999