Ninja: Fix variable duplication in RSP rules

Stream clear() resets stream state but does not actually clear its content.
This commit is contained in:
Nils Gladitz 2014-10-06 22:29:09 +02:00
parent 3f91919322
commit 71da30cae0
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ void cmGlobalNinjaGenerator::WriteBuild(std::ostream& os,
&& args.size() + buildstr.size() + assignments.size()
> (size_t) cmdLineLimit) {
buildstr += "_RSP_FILE";
variable_assignments.clear();
variable_assignments.str(std::string());
cmGlobalNinjaGenerator::WriteVariable(variable_assignments,
"RSP_FILE", rspfile, "", 1);
assignments += variable_assignments.str();