From: Ted Kremenek Date: Mon, 29 Sep 2008 23:06:09 +0000 (+0000) Subject: Really don't add -isysroot twice. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47fc25f0c18bb68d4f41789b7b52b34ec6d39d76;p=clang Really don't add -isysroot twice. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56815 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index 722edc7caa..60cf11ef95 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -291,9 +291,7 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) { # and the linker. if (defined $CompilerLinkerOptionMap{$Arg}) { my $Cnt = $CompilerLinkerOptionMap{$Arg}; - push @CompileOpts,$Arg; - push @LinkOpts,$Arg; - + # Check if this is an option that should have a unique value, and if so # determine if the value was checked before. if ($UniqueOptions{$Arg}) { @@ -304,6 +302,9 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) { $Uniqued{$Arg} = 1; } + push @CompileOpts,$Arg; + push @LinkOpts,$Arg; + while ($Cnt > 0) { ++$i; --$Cnt; push @CompileOpts, $ARGV[$i];