mirror of https://gitlab.com/ita1024/waf.git
Cppcheck tool - Fix creation of invalid command on windows
The following error occurring when we try to run the cppcheck tool on windows. As we see in the error message, the command is not well formed. WafError: Command "['C:\\\\Program Files (x86)\\\\Cppcheck\\\\cppcheck.exe'] --inconclusive --report-progress --verbose --xml ..." returned 1
This commit is contained in:
parent
e176101c8c
commit
4bea5a28ae
|
@ -168,7 +168,7 @@ def _tgen_create_cmd(self):
|
|||
bin_enable = self.env.CPPCHECK_BIN_ENABLE
|
||||
lib_enable = self.env.CPPCHECK_LIB_ENABLE
|
||||
|
||||
cmd = '%s' % self.env.CPPCHECK
|
||||
cmd = self.env.CPPCHECK
|
||||
args = ['--inconclusive','--report-progress','--verbose','--xml','--xml-version=2']
|
||||
args.append('--max-configs=%s' % max_configs)
|
||||
|
||||
|
@ -193,7 +193,7 @@ def _tgen_create_cmd(self):
|
|||
args.append('-I%r' % inc)
|
||||
for inc in self.to_incnodes(self.to_list(self.env.INCLUDES)):
|
||||
args.append('-I%r' % inc)
|
||||
return '%s %s' % (cmd, ' '.join(args))
|
||||
return cmd + args
|
||||
|
||||
|
||||
class cppcheck(Task.Task):
|
||||
|
|
Loading…
Reference in New Issue