[all-commits] [llvm/llvm-project] 2168db: getClangStripDependencyFileAdjuster(): Do not remo...

Hans via All-commits all-commits at lists.llvm.org
Tue Sep 8 01:21:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2168dbf4cc766dfb552076d9b1e84b00122b7993
      https://github.com/llvm/llvm-project/commit/2168dbf4cc766dfb552076d9b1e84b00122b7993
  Author: Shivanshu Goyal <Shivanshu.Goyal at microsoft.com>
  Date:   2020-09-08 (Tue, 08 Sep 2020)

  Changed paths:
    M clang/lib/Tooling/ArgumentsAdjusters.cpp
    M clang/unittests/Tooling/ToolingTest.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list