Really don't add -isysroot twice.

llvm-svn: 56815
This commit is contained in:
Ted Kremenek 2008-09-29 23:06:09 +00:00
parent 6b2e07a292
commit 887c49d592
1 changed files with 4 additions and 3 deletions

View File

@ -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];