Ninja: also create rspfile rules
This commit is contained in:
parent
0266c9bd19
commit
128fe5d504
|
@ -151,6 +151,8 @@ cmNinjaNormalTargetGenerator
|
||||||
{
|
{
|
||||||
cmTarget::TargetType targetType = this->GetTarget()->GetType();
|
cmTarget::TargetType targetType = this->GetTarget()->GetType();
|
||||||
std::string ruleName = this->LanguageLinkerRule();
|
std::string ruleName = this->LanguageLinkerRule();
|
||||||
|
if (useResponseFile)
|
||||||
|
ruleName += "_RSPFILE";
|
||||||
|
|
||||||
// Select whether to use a response file for objects.
|
// Select whether to use a response file for objects.
|
||||||
std::string rspfile;
|
std::string rspfile;
|
||||||
|
@ -174,7 +176,6 @@ cmNinjaNormalTargetGenerator
|
||||||
} else {
|
} else {
|
||||||
responseFlag = "@";
|
responseFlag = "@";
|
||||||
}
|
}
|
||||||
ruleName += "_RSPFILE";
|
|
||||||
rspfile = "$out.rsp";
|
rspfile = "$out.rsp";
|
||||||
responseFlag += rspfile;
|
responseFlag += rspfile;
|
||||||
vars.Objects = responseFlag.c_str();
|
vars.Objects = responseFlag.c_str();
|
||||||
|
|
Loading…
Reference in New Issue