commit | 7223e7be32cc2fcb263612f9cece0d307e70ed8b | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Mon Sep 28 15:17:27 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Mon Sep 28 15:17:27 2015 +0900 |
tree | 4b3614cbcd2a7742ff49bd886135d4997dcd94e5 | |
parent | 85c74a20324f6f5441672773bd4ae03aa1177ae6 [diff] [blame] |
[C++] Add --gen_all_targets flag
diff --git a/dep.cc b/dep.cc index b2480f7..7be6a6d 100644 --- a/dep.cc +++ b/dep.cc
@@ -149,6 +149,10 @@ for (Symbol s : phony_) targets.push_back(s); } + if (g_flags.gen_all_targets) { + for (const auto& p : rules_) + targets.push_back(p.first); + } // TODO: LogStats?