From d732a7b771f8ab758411881126a83b7ca4db34a9 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 4 Aug 2009 00:57:12 +0000 Subject: [PATCH] Recognize '-M' and '-MM' options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78027 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/ccc-analyzer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index f29c4d51d1..598e7024e9 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -410,7 +410,7 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) { my ($ArgKey) = split /=/,$Arg,2; # Modes ccc-analyzer supports - if ($Arg eq '-E') { $Action = 'preprocess'; } + if ($Arg =~ /^-(E|MM?)$/) { $Action = 'preprocess'; } elsif ($Arg eq '-c') { $Action = 'compile'; } elsif ($Arg =~ /^-print-prog-name/) { exit 0; } -- 2.40.0