]> granicus.if.org Git - clang/commitdiff
Really don't add -isysroot twice.
authorTed Kremenek <kremenek@apple.com>
Mon, 29 Sep 2008 23:06:09 +0000 (23:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 29 Sep 2008 23:06:09 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56815 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 722edc7caa61a1a25bec2e9eda6d31f84a33ef5f..60cf11ef95ca6ac62730fee2fd7771be16138d7e 100755 (executable)
@@ -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];