DescriptionFix clobber.py to restore args.gn on failure
If delete_dir or os.mkdir throw an exception then the code to restore
args.gn, build.ninja, and build.ninja.d will not run. This breaks a
design goal of gn which is that the args.gn files should not be
deleted.
The fix is to catch the exception and raise it after the files have
been restored.
To test the code leave chrome.exe or base_unittests.exe running in one
window and run this in another:
python build\clobber.py d:\src\chromium\src\out
Note that if you do this without the patch applied then all args.gn
files may be deleted, so consider backing them up. Also note that
args.gn files won't be restored unless build.ninja and build.ninja.d
files are also present, so back them up.
Just apply the patch first - it's easier.
BUG=612940
Committed: https://crrev.com/562df4f33e0a29669b83d451d33c81648a9e023e
Cr-Commit-Position: refs/heads/master@{#395177}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Tweak comment #Messages
Total messages: 15 (7 generated)
|