Enable waf --zones=argfile to display @argfile contents

This commit is contained in:
Thomas Nagy 2016-10-03 14:08:42 +02:00
parent 3686ac341d
commit 37388fda3b
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 2 additions and 0 deletions

View File

@ -244,6 +244,8 @@ class TaskBase(evil):
(fd, tmp) = tempfile.mkstemp()
os.write(fd, '\r\n'.join(args).encode())
os.close(fd)
if Logs.verbose:
Logs.debug('argfile: @%r -> %r', tmp, args)
return self.generator.bld.exec_command(cmd + ['@' + tmp], **kw)
finally:
try: