summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-03-17 13:39:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-03-17 13:39:38 (GMT)
commit03a61ae509d3c7f74519c003a4ca9e809d794915 (patch)
treeff2e1c82bb6d6cc897acc16fd851c079e253e4f0 /Source/cmGlobalNinjaGenerator.cxx
parent3e112cc510d6a25394d8a0a730191f6bb4204b73 (diff)
parent6fd9c68ed02d6b1dc013a6984f890d2c9457b1c8 (diff)
downloadCMake-03a61ae509d3c7f74519c003a4ca9e809d794915.zip
CMake-03a61ae509d3c7f74519c003a4ca9e809d794915.tar.gz
CMake-03a61ae509d3c7f74519c003a4ca9e809d794915.tar.bz2
Merge topic 'ninja-regenerate-no-recompact'
6fd9c68ed0 Ninja: Do not recompact deps log in regeneration during a build Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !5916
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 36be45c..6937639 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -630,8 +630,9 @@ void cmGlobalNinjaGenerator::CleanMetaData()
// `build.ninja` to load for this in Ninja-Multi. This may be relaxed in the
// future pending further investigation into how Ninja works upstream
// (ninja#1721).
- if (this->NinjaSupportsUnconditionalRecompactTool && expectBuildManifest &&
- !missingBuildManifest) {
+ if (this->NinjaSupportsUnconditionalRecompactTool &&
+ !this->GetCMakeInstance()->GetRegenerateDuringBuild() &&
+ expectBuildManifest && !missingBuildManifest) {
run_ninja_tool({ "recompact" });
}
if (this->NinjaSupportsRestatTool && this->OutputPathPrefix.empty()) {