[cfe-commits] r56956 - /cfe/trunk/utils/ccc

Daniel Dunbar daniel at zuster.org
Thu Oct 2 10:26:37 PDT 2008


Author: ddunbar
Date: Thu Oct  2 12:26:37 2008
New Revision: 56956

URL: http://llvm.org/viewvc/llvm-project?rev=56956&view=rev
Log:
Fix ccc handling of -mmacosx-version-min.

Modified:
    cfe/trunk/utils/ccc

Modified: cfe/trunk/utils/ccc
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc?rev=56956&r1=56955&r2=56956&view=diff

==============================================================================
--- cfe/trunk/utils/ccc (original)
+++ cfe/trunk/utils/ccc Thu Oct  2 12:26:37 2008
@@ -237,11 +237,13 @@
             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





More information about the cfe-commits mailing list