Bug 1215526 - part 3 - make preprocessor.preprocessor report all included files; r=glandium

For GENERATED_FILES scripts that want to report dependencies, this
change makes it easy to use |preprocess|, rather than having to
construct and use |Preprocessor| manually.
This commit is contained in:
Nathan Froyd 2015-10-21 10:38:18 -04:00
parent 3a6f416c97
commit fb2c405492

View File

@ -785,6 +785,7 @@ def preprocess(includes=[sys.stdin], defines={},
for f in includes:
with open(f, 'rU') as input:
pp.processFile(input=input, output=output)
return pp.includes
# Keep this module independently executable.