Merge topic 'ninja-error-failbit'
b94514f
Ninja: mark rules/build file streams failed if error occurred (#13067, #13105)
This commit is contained in:
commit
8e9929d527
|
@ -385,6 +385,11 @@ void cmGlobalNinjaGenerator::Generate()
|
||||||
this->WriteTargetAliases(*this->BuildFileStream);
|
this->WriteTargetAliases(*this->BuildFileStream);
|
||||||
this->WriteBuiltinTargets(*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->CloseRulesFileStream();
|
||||||
this->CloseBuildFileStream();
|
this->CloseBuildFileStream();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue