From 93a08e6dd7044bb8427fb2abf3f23e3bd8d64a6f Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 13 Jan 2009 01:04:40 +0000 Subject: [PATCH] ccc: Darwin/CC1: Be bug compatible with gcc in a corner case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62131 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/ccc/ccclib/Tools.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/ccc/ccclib/Tools.py b/tools/ccc/ccclib/Tools.py index 7d8e2d82c1..cc08043fc9 100644 --- a/tools/ccc/ccclib/Tools.py +++ b/tools/ccc/ccclib/Tools.py @@ -177,11 +177,12 @@ class Darwin_X86_CompileTool(Tool): def addCPPArgs(self, cmd_args, arch, arglist): # Derived from cpp spec. - # FIXME: The gcc spec is broken here, it refers to dynamic but - # that has been translated. if arglist.getLastArg(arglist.parser.staticOption): - if not arglist.getLastArg(arglist.parser.ZdynamicOption): - cmd_args.append('-D__STATIC__') + # The gcc spec is broken here, it refers to dynamic but + # that has been translated. Start by being bug compatible. + + # if not arglist.getLastArg(arglist.parser.ZdynamicOption): + cmd_args.append('-D__STATIC__') else: cmd_args.append('-D__DYNAMIC__') -- 2.50.1