summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-10 18:20:29 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-10 18:20:29 (GMT)
commitba8d0db217399dede6d897c928b4dbf52e7e141b (patch)
tree5a0e167cdc7c98a26a3a5a52599ec6aa476674d4 /Source/cmNinjaTargetGenerator.cxx
parent343ff7a72e7c08f3a63dde25bd1f06c8c3854f56 (diff)
downloadCMake-ba8d0db217399dede6d897c928b4dbf52e7e141b.zip
CMake-ba8d0db217399dede6d897c928b4dbf52e7e141b.tar.gz
CMake-ba8d0db217399dede6d897c928b4dbf52e7e141b.tar.bz2
Ninja: don't pollute the rules file with useless comments
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 40fdc8b..f66d1d3 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -309,10 +309,11 @@ void
cmNinjaTargetGenerator
::WriteLanguageRules(const std::string& language)
{
+#ifdef NINJA_GEN_VERBOSE_FILES
this->GetRulesFileStream()
<< "# Rules for language " << language << "\n\n";
+#endif
this->WriteCompileRule(language);
- this->GetRulesFileStream() << "\n";
}
void