From 47fc25f0c18bb68d4f41789b7b52b34ec6d39d76 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 29 Sep 2008 23:06:09 +0000 Subject: [PATCH] Really don't add -isysroot twice. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56815 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/ccc-analyzer | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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]; -- 2.50.1