mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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.
This commit is contained in:
parent
b7c88dd547
commit
8792aa7fc0
3 changed files with 10 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue