summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-30 22:54:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-30 22:54:22 +0000
commit969b48cba1c81869e16db4083fc3894cea03b05c (patch)
treee5151b2650eb2b57f75780749337a63f308f0b3a /clang
parentf4a36407c7b825db9202bb0615bc52959ca65db2 (diff)
downloadbcm5719-llvm-969b48cba1c81869e16db4083fc3894cea03b05c.tar.gz
bcm5719-llvm-969b48cba1c81869e16db4083fc3894cea03b05c.zip
ccc: Add support for another batch of OS X linker options, including
-mmacosx-version-min. One might anticipate that at some point I will just break down and go through the man page. That seems a little too obvious. llvm-svn: 56890
Diffstat (limited to 'clang')
-rwxr-xr-xclang/utils/ccc19
1 files changed, 13 insertions, 6 deletions
diff --git a/clang/utils/ccc b/clang/utils/ccc
index d4e9799b392..e3ee17226cb 100755
--- a/clang/utils/ccc
+++ b/clang/utils/ccc
@@ -195,6 +195,11 @@ def main(args):
while i < len(args):
arg = args[i]
+ if '=' in arg:
+ argkey,argvalue = arg.split('=',1)
+ else:
+ argkey,argvalue = arg,None
+
# Modes ccc supports
if arg == '-save-temps':
save_temps = 1
@@ -225,21 +230,23 @@ def main(args):
compile_opts.append(arg)
# Options with one argument that should pass through to compiler
- if arg in [ '-include', '-idirafter', '-iprefix',
- '-iquote', '-isystem', '-iwithprefix',
- '-iwithprefixbefore']:
+ if argkey in [ '-include', '-idirafter', '-iprefix',
+ '-iquote', '-isystem', '-iwithprefix',
+ '-iwithprefixbefore', '-mmacosx-version-min']:
compile_opts.append(arg)
compile_opts.append(args[i+1])
i += 1
# Options with no arguments that should pass through
- if arg in ('-dynamiclib','-bundle'):
+ if arg in ('-dynamiclib', '-bundle', '-headerpad_max_install_names'):
link_opts.append(arg)
# Options with one argument that should pass through
if arg in ('-framework', '-multiply_defined', '-bundle_loader',
- '-e', '-unexported_symbols_list', '-install_name',
- '-compatibility_version', '-current_version'):
+ '-e', '-install_name',
+ '-unexported_symbols_list', '-exported_symbols_list',
+ '-compatibility_version', '-current_version', '-init',
+ '-seg1addr', '-dylib_file'):
link_opts.append(arg)
link_opts.append(args[i+1])
i += 1
OpenPOWER on IntegriCloud