Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit c01ce34

Browse files
committed
comment on tool query
1 parent e810b7e commit c01ce34

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ninja.cc

+4-3
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ int NinjaMain::ToolGraph(const Options* options, int argc, char* argv[]) {
350350

351351
return 0;
352352
}
353-
353+
#if 0
354354
int NinjaMain::ToolQuery(const Options* options, int argc, char* argv[]) {
355355
if (argc == 0) {
356356
Error("expected a target to query");
@@ -395,7 +395,7 @@ int NinjaMain::ToolQuery(const Options* options, int argc, char* argv[]) {
395395
}
396396
return 0;
397397
}
398-
398+
#endif
399399
#if defined(NINJA_HAVE_BROWSE)
400400
int NinjaMain::ToolBrowse(const Options* options, int argc, char* argv[]) {
401401
RunBrowsePython(&state_, ninja_command_, options->input_file, argc, argv);
@@ -900,9 +900,10 @@ const Tool* ChooseTool(const string& tool_name) {
900900
Tool::RUN_AFTER_LOGS, &NinjaMain::ToolDeps },
901901
{ "graph", "output graphviz dot file for targets",
902902
Tool::RUN_AFTER_LOAD, &NinjaMain::ToolGraph },
903-
#endif
903+
904904
{ "query", "show inputs/outputs for a path",
905905
Tool::RUN_AFTER_LOGS, &NinjaMain::ToolQuery },
906+
#endif
906907
{ "targets", "list targets by their rule or depth in the DAG",
907908
Tool::RUN_AFTER_LOAD, &NinjaMain::ToolTargets },
908909
{ "compdb", "dump JSON compilation database to stdout",

0 commit comments

Comments
 (0)