aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-11-12 13:54:46 -0800
committerColin Cross <ccross@android.com>2019-11-12 13:56:44 -0800
commitea375ee8751ecbe0c9ce7f456d4f09e43732e677 (patch)
tree472bf876b9d65e3a0c299b995d0bae25c5084016
parent4182efc18a6ddbeca64fa997d53c2df0f5122498 (diff)
downloadplatform_build_kati-ea375ee8751ecbe0c9ce7f456d4f09e43732e677.tar.gz
platform_build_kati-ea375ee8751ecbe0c9ce7f456d4f09e43732e677.tar.bz2
platform_build_kati-ea375ee8751ecbe0c9ce7f456d4f09e43732e677.zip
Don't emit pool for phony ninja rules
Ninja phony rules don't execute anything, there is no need to put them in a pool. Test: ./runtest.rb -c -n ninja_pool.sh Change-Id: I4a19f053321643f458e64d55a17b314589e2a26c
-rw-r--r--ninja.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ninja.cc b/ninja.cc
index 53810f0..c11bc56 100644
--- a/ninja.cc
+++ b/ninja.cc
@@ -580,7 +580,7 @@ class NinjaGenerator {
if (pool != "none") {
*o << " pool = " << pool << "\n";
}
- } else if (g_flags.default_pool) {
+ } else if (g_flags.default_pool && rule_name != "phony") {
*o << " pool = " << g_flags.default_pool << "\n";
} else if (use_local_pool) {
*o << " pool = local_pool\n";