Ninja: error on missing rspfile_content
This commit is contained in:
parent
8c1e35c195
commit
3856e6698e
|
@ -306,11 +306,15 @@ void cmGlobalNinjaGenerator::WriteRule(std::ostream& os,
|
||||||
|
|
||||||
if(!rspfile.empty())
|
if(!rspfile.empty())
|
||||||
{
|
{
|
||||||
|
if (rspcontent.empty())
|
||||||
|
{
|
||||||
|
cmSystemTools::Error("No rspfile_content given!", comment.c_str());
|
||||||
|
return;
|
||||||
|
}
|
||||||
cmGlobalNinjaGenerator::Indent(os, 1);
|
cmGlobalNinjaGenerator::Indent(os, 1);
|
||||||
os << "rspfile = " << rspfile << "\n";
|
os << "rspfile = " << rspfile << "\n";
|
||||||
cmGlobalNinjaGenerator::Indent(os, 1);
|
cmGlobalNinjaGenerator::Indent(os, 1);
|
||||||
os << "rspfile_content = " <<
|
os << "rspfile_content = " << rspcontent << "\n";
|
||||||
(rspcontent.empty() ? "$in" :rspcontent) << "\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(restat)
|
if(restat)
|
||||||
|
|
Loading…
Reference in New Issue