summaryrefslogtreecommitdiff
path: root/tools/makeparallel/makeparallel.cpp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2017-02-03 15:10:05 -0800
committer Colin Cross <ccross@android.com> 2017-02-03 15:16:59 -0800
commite14d9b7f7e699fce137c6914cb61533c38812852 (patch)
tree768b30c50370802c1ba95d30d97bcd2bcb403eb0 /tools/makeparallel/makeparallel.cpp
parentd12816b100c035da17310dfd4b94c5a235eccd5e (diff)
Create static archives in temporary file
Creating static archives is often a multi-command process due to adding whole static libraires or hitting command line length limits. If one of the intermediate commands fails, the output file may already exist. Unlike make, ninja has no option to delete output files on failed builds, instead assuming all build commands will produce their output file atomically (https://github.com/ninja-build/ninja/issues/1135). Change the static library rules to generate to a temporary file that is then atomically moved into place as the output file. Test: m -j checkbuild tests cts Change-Id: I4faf269f0c8e313c738154870a5aa0b4774a72bc
Diffstat (limited to 'tools/makeparallel/makeparallel.cpp')
0 files changed, 0 insertions, 0 deletions