]> granicus.if.org Git - clang/commitdiff
Fix ccc handling of -mmacosx-version-min.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 2 Oct 2008 17:26:37 +0000 (17:26 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 2 Oct 2008 17:26:37 +0000 (17:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56956 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc

index 1745005c723343fefbeea399bf57de94a249b823..a826b005a07cdd58fa6582bf91bf6fe426abfb93 100755 (executable)
--- a/utils/ccc
+++ b/utils/ccc
@@ -237,11 +237,13 @@ def main(args):
             compile_opts.append(arg)
         if arg[:5] in ['-std=']:
             compile_opts.append(arg)
+        if argkey in ('-std', '-mmacosx-version-min'):
+            compile_opts.append(arg)
 
         # Options with one argument that should pass through to compiler
-        if argkey in [ '-include', '-idirafter', '-iprefix',
+        if arg in [ '-include', '-idirafter', '-iprefix',
                        '-iquote', '-isystem', '-iwithprefix',
-                       '-iwithprefixbefore', '-mmacosx-version-min']:
+                       '-iwithprefixbefore']:
             compile_opts.append(arg)
             compile_opts.append(args[i+1])
             i += 1