summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/tools/ccc/ccclib/Tools.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/tools/ccc/ccclib/Tools.py b/clang/tools/ccc/ccclib/Tools.py
index 7d8e2d82c10..cc08043fc97 100644
--- a/clang/tools/ccc/ccclib/Tools.py
+++ b/clang/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__')
OpenPOWER on IntegriCloud