diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-09-02 15:16:44 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-09-02 16:14:04 -0400 |
commit | 8792aa7fc0630927302b2039698051f7e01fc190 (patch) | |
tree | f160f63e2870cb08052d2086774d84532045e769 /components/script/dom/bindings/codegen/GlobalGen.py | |
parent | b7c88dd547c01d99c77c90329cc09f13a90a53b7 (diff) | |
download | servo-8792aa7fc0630927302b2039698051f7e01fc190.tar.gz servo-8792aa7fc0630927302b2039698051f7e01fc190.zip |
Allow 'script' component to enter a 'built' state
After this pull request merged:
https://github.com/servo/servo/pull/7209
the 'script' component would never enter a 'built' state. In other
words, if one calls `mach build`, lets it complete, then calls `mach
build` again, the 'script' component would rebuild even though we
supposedly just built it. This was due to the `ParserResults.pkl`
getting placed in the `components/script` directory instead of the
output directory, causing cargo to think that there were unbuilt files.
Diffstat (limited to 'components/script/dom/bindings/codegen/GlobalGen.py')
-rw-r--r-- | components/script/dom/bindings/codegen/GlobalGen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/GlobalGen.py b/components/script/dom/bindings/codegen/GlobalGen.py index 537883fae57..4d564aab0ac 100644 --- a/components/script/dom/bindings/codegen/GlobalGen.py +++ b/components/script/dom/bindings/codegen/GlobalGen.py @@ -54,7 +54,8 @@ def main(): parserResults = parser.finish() # Write the parser results out to a pickle. - with open('ParserResults.pkl', 'wb') as resultsFile: + resultsPath = os.path.join(outputdir, 'ParserResults.pkl') + with open(resultsPath, 'wb') as resultsFile: cPickle.dump(parserResults, resultsFile, -1) # Load the configuration. |