зеркало из https://github.com/microsoft/clang-1.git
ccc: Forward -dM to clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2ceb041eb3
Коммит
8425a0f7b5
|
@ -745,6 +745,7 @@ class OptionParser:
|
|||
# FIXME: Naming convention.
|
||||
self.dGroup = OptionGroup('-d')
|
||||
self.dAOption = self.addOption(FlagOption('-dA', self.dGroup))
|
||||
self.dMOption = self.addOption(FlagOption('-dM', self.dGroup))
|
||||
self.dOption = self.addOption(FlagOption('-d', self.dGroup))
|
||||
|
||||
# Use a group for this in anticipation of adding more -d
|
||||
|
|
|
@ -321,6 +321,8 @@ class Clang_CompileTool(Tool):
|
|||
|
||||
arglist.addAllArgs(cmd_args, arglist.parser.Clang_fGroup)
|
||||
|
||||
arglist.addLastArg(cmd_args, arglist.parser.dMOption)
|
||||
|
||||
for arg in arglist.getArgs(arglist.parser.XclangOption):
|
||||
cmd_args.extend(arglist.getValues(arg))
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче