diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-01-16 20:25:36 +0000 | 
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-16 20:25:36 +0000 | 
| commit | 1e3677c907d69208563d08febc7f800969acb8be (patch) | |
| tree | 6eb4f7c90b51e2d66fa98d35f5b8536ecac2a62f /clang/tools/ccc/ccclib/Tools.py | |
| parent | 762edbc0748814eb88b1a66b0b54d106cbb02b65 (diff) | |
| download | bcm5719-llvm-1e3677c907d69208563d08febc7f800969acb8be.tar.gz bcm5719-llvm-1e3677c907d69208563d08febc7f800969acb8be.zip | |
ccc: Darwin/X86: Implement remainder of (non -Z...) generic argument
translation.
 - As is my general strategy, this is initially pedantically
   compatible with gcc and can be cleaned up later. So, for example,
   we still pass -static to collect2 4 times if you say '-mkernel
   -fapple-kext'. ;)
llvm-svn: 62353
Diffstat (limited to 'clang/tools/ccc/ccclib/Tools.py')
| -rw-r--r-- | clang/tools/ccc/ccclib/Tools.py | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/clang/tools/ccc/ccclib/Tools.py b/clang/tools/ccc/ccclib/Tools.py index a12c84a1551..ce87d38255c 100644 --- a/clang/tools/ccc/ccclib/Tools.py +++ b/clang/tools/ccc/ccclib/Tools.py @@ -619,9 +619,8 @@ class Darwin_X86_LinkTool(Tool):      def addLinkArgs(self, cmd_args, arch, arglist):          # Derived from link spec. -        if arglist.getLastArg(arglist.parser.staticOption): -            cmd_args.append('-static') -        else: +        arglist.addAllArgs(cmd_args, arglist.parser.staticOption) +        if not arglist.getLastArg(arglist.parser.staticOption):              cmd_args.append('-dynamic')          if arglist.getLastArg(arglist.parser.f_gnuRuntimeOption):              # FIXME: Replace -lobjc in forward args with | 

