| Index: tools/gn/ninja_build_writer.cc
|
| diff --git a/tools/gn/ninja_build_writer.cc b/tools/gn/ninja_build_writer.cc
|
| index aace0ca811a39ac62aad7c20499c1f8d39abb11c..be55270ae2f0c66869e39b62979616fa3aeae875 100644
|
| --- a/tools/gn/ninja_build_writer.cc
|
| +++ b/tools/gn/ninja_build_writer.cc
|
| @@ -286,6 +286,14 @@ void NinjaBuildWriter::WriteAllPools() {
|
| }
|
| }
|
|
|
| + for (const Target* target : default_toolchain_targets_) {
|
| + if (target->output_type() == Target::ACTION) {
|
| + const LabelPtrPair<Pool>& pool = target->action_values().pool();
|
| + if (pool.ptr)
|
| + used_pools.insert(pool.ptr);
|
| + }
|
| + }
|
| +
|
| // Write pools sorted by their name, to make output deterministic.
|
| std::vector<const Pool*> sorted_pools(used_pools.begin(), used_pools.end());
|
| auto pool_name = [this](const Pool* pool) {
|
|
|