Ninja: error on missing rspfile_content

This commit is contained in:
Peter Kümmel 2012-07-10 10:42:24 +02:00
parent 8c1e35c195
commit 3856e6698e
1 changed files with 9 additions and 5 deletions

View File

@ -306,11 +306,15 @@ void cmGlobalNinjaGenerator::WriteRule(std::ostream& os,
if(!rspfile.empty())
{
cmGlobalNinjaGenerator::Indent(os, 1);
os << "rspfile = " << rspfile << "\n";
cmGlobalNinjaGenerator::Indent(os, 1);
os << "rspfile_content = " <<
(rspcontent.empty() ? "$in" :rspcontent) << "\n";
if (rspcontent.empty())
{
cmSystemTools::Error("No rspfile_content given!", comment.c_str());
return;
}
cmGlobalNinjaGenerator::Indent(os, 1);
os << "rspfile = " << rspfile << "\n";
cmGlobalNinjaGenerator::Indent(os, 1);
os << "rspfile_content = " << rspcontent << "\n";
}
if(restat)