diff options
Diffstat (limited to 'tools/ccc/ccclib/Tools.py')
-rw-r--r-- | tools/ccc/ccclib/Tools.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/ccc/ccclib/Tools.py b/tools/ccc/ccclib/Tools.py index 6156684ca5..a86ab9ba9f 100644 --- a/tools/ccc/ccclib/Tools.py +++ b/tools/ccc/ccclib/Tools.py @@ -305,8 +305,7 @@ class Clang_CompileTool(Tool): cmd_args.append('-token-cache') cmd_args.append(pthPath) - # FIXME: Dehardcode this. - cmd_args.append('-fblocks') + arglist.addAllArgs(cmd_args, arglist.parser.fblocksGroup) arglist.addAllArgs(cmd_args, arglist.parser.OOption) arglist.addAllArgs2(cmd_args, arglist.parser.ClangWGroup, arglist.parser.pedanticGroup) @@ -466,6 +465,7 @@ class Darwin_X86_CC1Tool(Tool): # ccc treats -fsyntax-only specially. arglist.addAllArgs2(cmd_args, arglist.parser.fGroup, arglist.parser.syntaxOnlyOption) + arglist.addAllArgs(cmd_args, arglist.parser.fblocksGroup) arglist.addAllArgs(cmd_args, arglist.parser.undefOption) if arglist.getLastArg(arglist.parser.QnOption): @@ -538,6 +538,7 @@ class Darwin_X86_CC1Tool(Tool): # ccc treats -fsyntax-only specially. arglist.addAllArgs2(cmd_args, arglist.parser.fGroup, arglist.parser.syntaxOnlyOption) + arglist.addAllArgs(cmd_args, arglist.parser.fblocksGroup) if (arglist.getLastArg(arglist.parser.gGroup) and not arglist.getLastArg(arglist.parser.g0Option) and |