diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2014-10-06 20:29:09 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2014-10-06 20:29:09 (GMT) |
commit | 71da30cae09d56a81fe43b8c65b9dfeea1d7dd06 (patch) | |
tree | ad3958ab008022193c35a5a03c65051c88d04f69 /Source/cmGlobalNinjaGenerator.cxx | |
parent | 3f9191932262f2279a7d25bf0dbb2fc224bd27cb (diff) | |
download | CMake-71da30cae09d56a81fe43b8c65b9dfeea1d7dd06.zip CMake-71da30cae09d56a81fe43b8c65b9dfeea1d7dd06.tar.gz CMake-71da30cae09d56a81fe43b8c65b9dfeea1d7dd06.tar.bz2 |
Ninja: Fix variable duplication in RSP rules
Stream clear() resets stream state but does not actually clear its content.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 543ecdb..f391203 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -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(); |