]> granicus.if.org Git - clang/commit
[clang-scan-deps] Add -M to work around -MT issue after r371918
authorFangrui Song <maskray@google.com>
Sat, 14 Sep 2019 07:25:27 +0000 (07:25 +0000)
committerFangrui Song <maskray@google.com>
Sat, 14 Sep 2019 07:25:27 +0000 (07:25 +0000)
commit55795f1e801fe5165d80ef68ecea117c429e32cb
tree03bc37ff2618701d274d9ceda04f1287da04a564
parentd59751e4fddab102c49528ebd1c3b546c0ea96fa
[clang-scan-deps] Add -M to work around -MT issue after r371918

gcc will complain if -MT is used but neither -M nor -MM is specified:

> cc1: error: to generate dependencies you must specify either -M or -MM

r371918 changed our behavior to match GCC, but apparently
clang-scan-deps is not happy.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371920 91177308-0d34-0410-b5e6-96231b3b80d8
tools/clang-scan-deps/ClangScanDeps.cpp