From fb2c405492b5373bd66c900c5455deccea9bec17 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Wed, 21 Oct 2015 10:38:18 -0400 Subject: [PATCH] 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. --- python/mozbuild/mozbuild/preprocessor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild/preprocessor.py index e671fa1da69c..a85c14dca382 100644 --- a/python/mozbuild/mozbuild/preprocessor.py +++ b/python/mozbuild/mozbuild/preprocessor.py @@ -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.