Pass "-arch" down to clang.

llvm-svn: 50056
This commit is contained in:
Ted Kremenek 2008-04-21 20:28:01 +00:00
parent 0dcd9aa8fd
commit 74a58d780a
2 changed files with 6 additions and 6 deletions

View File

@ -99,7 +99,7 @@ def main(args):
link_opts.append(arg) link_opts.append(arg)
# Options with one argument that should be ignored # Options with one argument that should be ignored
if arg in ['--param', '-arch', '-u']: if arg in ['--param', '-u']:
i += 1 i += 1
# Prefix matches for the compile mode # Prefix matches for the compile mode
@ -112,7 +112,7 @@ def main(args):
compile_opts.append(arg) compile_opts.append(arg)
# Options with one argument that should pass through # Options with one argument that should pass through
if arg in ['-include', '-isysroot']: if arg in ['-include', '-isysroot', '-arch']:
compile_opts.append(arg) compile_opts.append(arg)
compile_opts.append(args[i+1]) compile_opts.append(args[i+1])
i += 1 i += 1
@ -124,7 +124,7 @@ def main(args):
link_opts.append(arg) link_opts.append(arg)
# Options with one argument that should pass through # Options with one argument that should pass through
if arg in ['-framework', '-isysroot']: if arg in ['-framework', '-isysroot', '-arch']:
link_opts.append(arg) link_opts.append(arg)
link_opts.append(args[i+1]) link_opts.append(args[i+1])
i += 1 i += 1

View File

@ -162,7 +162,7 @@ def main(args):
link_opts.append(arg) link_opts.append(arg)
# Options with one argument that should be ignored # Options with one argument that should be ignored
if arg in ['--param', '-arch', '-u']: if arg in ['--param', '-u']:
i += 1 i += 1
# Prefix matches for the compile mode # Prefix matches for the compile mode
@ -175,7 +175,7 @@ def main(args):
compile_opts.append(arg) compile_opts.append(arg)
# Options with one argument that should pass through # Options with one argument that should pass through
if arg in ['-include', '-isysroot']: if arg in ['-include', '-isysroot', '-arch']:
compile_opts.append(arg) compile_opts.append(arg)
compile_opts.append(args[i+1]) compile_opts.append(args[i+1])
i += 1 i += 1
@ -187,7 +187,7 @@ def main(args):
link_opts.append(arg) link_opts.append(arg)
# Options with one argument that should pass through # Options with one argument that should pass through
if arg in ['-framework', '-isysroot']: if arg in ['-framework', '-isysroot', '-arch']:
link_opts.append(arg) link_opts.append(arg)
link_opts.append(args[i+1]) link_opts.append(args[i+1])
i += 1 i += 1