We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b171c6 commit 3872bdcCopy full SHA for 3872bdc
simd/ninja-simd.cpp
@@ -2064,11 +2064,19 @@ int main(int argc, char** argv) {
2064
monitor_subprocesses(state, *global);
2065
dbg("done\n");
2066
} else if (tool == "commands") {
2067
+ bool single = false;
2068
for (auto target : targets) {
2069
+ if (target == "-s") {
2070
+ single = true;
2071
+ continue;
2072
+ }
2073
Node* n = global->nodes[target];
2074
if (!n)
2075
error("unknown target");
- print_commands(n);
2076
+ if (!single)
2077
+ print_commands(n);
2078
+ else if (n->in_edge)
2079
+ print_command(n->in_edge);
2080
}
2081
} else if (tool == "loadlog") {
2082
} else {
0 commit comments