aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils/ccc-analyzer2
1 files changed, 1 insertions, 1 deletions
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; }