This causes cmGeneratedFileStream to delete the temporary files, rather than overwriting the (working) existing files.
This commit is contained in:
parent
e78483c08e
commit
b94514f020
|
@ -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