aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-09-16 23:51:12 -0700
committerDan Willemsen <dwillemsen@google.com>2016-09-19 14:52:32 -0700
commitcac3d5ac35c1e18879721e19cb435e14663fee01 (patch)
tree86ef3c6367ffd62e59057114ad55f2868f6cb896
parentd26caadec345d7f19d63f894a0b8320693543ea6 (diff)
ninja: Don't emit special targets (.*)
These aren't meant to be called directly, so there's no point putting them in the ninja file.
-rw-r--r--ninja.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ninja.cc b/ninja.cc
index acf5293..90fe404 100644
--- a/ninja.cc
+++ b/ninja.cc
@@ -483,6 +483,9 @@ class NinjaGenerator {
string rule_name = "phony";
bool use_local_pool = false;
+ if (node->output.get(0) == '.') {
+ return;
+ }
if (g_flags.enable_debug) {
*o << "# " << (node->loc.filename ? node->loc.filename : "(null)")
<< ':' << node->loc.lineno << "\n";