mirror of https://gitlab.com/ita1024/waf.git
Fix waflib/extras/syms.py
This commit is contained in:
parent
5526a71695
commit
ae243dd23b
|
@ -104,7 +104,6 @@ def exit_cleanup():
|
||||||
shutil.copy(filename, os.path.join(up, 'latest.log'))
|
shutil.copy(filename, os.path.join(up, 'latest.log'))
|
||||||
except OSError:
|
except OSError:
|
||||||
# this may fail on windows due to processes spawned
|
# this may fail on windows due to processes spawned
|
||||||
#
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
atexit.register(exit_cleanup)
|
atexit.register(exit_cleanup)
|
||||||
|
|
|
@ -41,7 +41,7 @@ class gen_sym(Task):
|
||||||
re_nm=re.compile(r'T\s+(_?'+self.generator.export_symbols_regex+r')\b')
|
re_nm=re.compile(r'T\s+(_?'+self.generator.export_symbols_regex+r')\b')
|
||||||
else:
|
else:
|
||||||
re_nm = re.compile(r'T\s+(' + self.generator.export_symbols_regex + r')\b')
|
re_nm = re.compile(r'T\s+(' + self.generator.export_symbols_regex + r')\b')
|
||||||
cmd = [self.env.NM[0] or 'nm', '-g', obj.abspath()]
|
cmd = self.env.NM or ['nm'] + ['-g', obj.abspath()]
|
||||||
syms = re_nm.findall(self.generator.bld.cmd_and_log(cmd, quiet=STDOUT, **kw))
|
syms = re_nm.findall(self.generator.bld.cmd_and_log(cmd, quiet=STDOUT, **kw))
|
||||||
self.outputs[0].write('%r' % syms)
|
self.outputs[0].write('%r' % syms)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"""
|
"""
|
||||||
Windows-specific optimizations
|
Windows-specific optimizations
|
||||||
|
|
||||||
This module can help reducing the overhead of listing files on windows (more than 10000 files).
|
This module can help reducing the overhead of listing files on windows
|
||||||
|
(more than 10000 files). Python 3.5 already provides the listdir
|
||||||
|
optimization though.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in New Issue