Ninja: also create rspfile rules

This commit is contained in:
Peter Kuemmel 2012-06-05 23:40:42 +02:00
parent 0266c9bd19
commit 128fe5d504
1 changed files with 2 additions and 1 deletions

View File

@ -151,6 +151,8 @@ cmNinjaNormalTargetGenerator
{
cmTarget::TargetType targetType = this->GetTarget()->GetType();
std::string ruleName = this->LanguageLinkerRule();
if (useResponseFile)
ruleName += "_RSPFILE";
// Select whether to use a response file for objects.
std::string rspfile;
@ -174,7 +176,6 @@ cmNinjaNormalTargetGenerator
} else {
responseFlag = "@";
}
ruleName += "_RSPFILE";
rspfile = "$out.rsp";
responseFlag += rspfile;
vars.Objects = responseFlag.c_str();