[rtems_waf commit] Fix --show-commands.
Christian Mauderer
christianm at rtems.org
Tue Jun 12 07:02:58 UTC 2018
Module: rtems_waf
Branch: master
Commit: 656b7b09786c827dc5e9e9ce6f2c7c35dce601e2
Changeset: http://git.rtems.org/rtems_waf/commit/?id=656b7b09786c827dc5e9e9ce6f2c7c35dce601e2
Author: Christian Mauderer <christian.mauderer at embedded-brains.de>
Date: Wed Jun 6 09:48:04 2018 +0200
Fix --show-commands.
In the current version of libbsd, if the --show-commands option is used,
the cwd is passed as a Nod3. Popen does not work with that. Therefore
create a string from cwd if it isn't already.
---
rtems.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rtems.py b/rtems.py
index 6907709..a88c679 100644
--- a/rtems.py
+++ b/rtems.py
@@ -579,6 +579,8 @@ def output_command_line():
else:
cmdstr = ' '.join(cmd)
Logs.info('(%d) %s' % (len(cmdstr), cmdstr)) # here is the change
+ if not isinstance(kw['cwd'], str):
+ kw['cwd'] = str(kw['cwd'])
Logs.debug('runner_env: kw=%s' % kw)
try:
if self.logger:
More information about the vc
mailing list