summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2020-05-18 10:46:18 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2020-05-23 16:44:25 (GMT)
commitcc79afbc0510b7320d35fb481f0f200dec92cb43 (patch)
tree51485cf06f219f729167299f428242ed8c2cb04a /configure.py
parentcf021f32e62370b7f9c8249a6c600cbe48e849c7 (diff)
downloadNinja-cc79afbc0510b7320d35fb481f0f200dec92cb43.zip
Ninja-cc79afbc0510b7320d35fb481f0f200dec92cb43.tar.gz
Ninja-cc79afbc0510b7320d35fb481f0f200dec92cb43.tar.bz2
Delay actually opening log files until the first write, fix #1724
Calling DepsLog/BuildLog::OpenForWrite will now only save the file path. The actual opening of the file (moved to OpenForWriteIfNeeded) happens right before the first write attempt. This is needed so that the files aren't held open when the generator runs (i.e. RebuildManifest) as it may call tools like recompact which won't be able to open the file on Windows. The disadvantage is that now the error reporting happens at a later time and will be reported as a failed write, not a failed open.
Diffstat (limited to 'configure.py')
0 files changed, 0 insertions, 0 deletions