diff options
author | David Cole <david.cole@kitware.com> | 2012-05-17 19:00:01 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-05-17 19:00:01 (GMT) |
commit | 8e9929d527bf6f9dc607d9036e53d226bb165d32 (patch) | |
tree | 4c50f504e3ec7f1a163adf76ce6985a5902e9a5c | |
parent | 78733119cbec888f6e6614e9f204194d060be309 (diff) | |
parent | b94514f02018d566abc0156d5a729ebe9ee49105 (diff) | |
download | CMake-8e9929d527bf6f9dc607d9036e53d226bb165d32.zip CMake-8e9929d527bf6f9dc607d9036e53d226bb165d32.tar.gz CMake-8e9929d527bf6f9dc607d9036e53d226bb165d32.tar.bz2 |
Merge topic 'ninja-error-failbit'
b94514f Ninja: mark rules/build file streams failed if error occurred (#13067, #13105)
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 67f809a..328706c 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -385,6 +385,11 @@ void cmGlobalNinjaGenerator::Generate() this->WriteTargetAliases(*this->BuildFileStream); this->WriteBuiltinTargets(*this->BuildFileStream); + if (cmSystemTools::GetErrorOccuredFlag()) { + this->RulesFileStream->setstate(std::ios_base::failbit); + this->BuildFileStream->setstate(std::ios_base::failbit); + } + this->CloseRulesFileStream(); this->CloseBuildFileStream(); } |