Fix ccc handling of -mmacosx-version-min.

llvm-svn: 56956
This commit is contained in:
Daniel Dunbar 2008-10-02 17:26:37 +00:00
parent d40a39626c
commit 92c4c4af58
1 changed files with 4 additions and 2 deletions

View File

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