Ninja: Fix variable duplication in RSP rules
Stream clear() resets stream state but does not actually clear its content.
This commit is contained in:
parent
3f91919322
commit
71da30cae0
|
@ -205,7 +205,7 @@ void cmGlobalNinjaGenerator::WriteBuild(std::ostream& os,
|
||||||
&& args.size() + buildstr.size() + assignments.size()
|
&& args.size() + buildstr.size() + assignments.size()
|
||||||
> (size_t) cmdLineLimit) {
|
> (size_t) cmdLineLimit) {
|
||||||
buildstr += "_RSP_FILE";
|
buildstr += "_RSP_FILE";
|
||||||
variable_assignments.clear();
|
variable_assignments.str(std::string());
|
||||||
cmGlobalNinjaGenerator::WriteVariable(variable_assignments,
|
cmGlobalNinjaGenerator::WriteVariable(variable_assignments,
|
||||||
"RSP_FILE", rspfile, "", 1);
|
"RSP_FILE", rspfile, "", 1);
|
||||||
assignments += variable_assignments.str();
|
assignments += variable_assignments.str();
|
||||||
|
|
Loading…
Reference in New Issue