summaryrefslogtreecommitdiff
path: root/src/buildtool/main/describe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/main/describe.cpp')
-rw-r--r--src/buildtool/main/describe.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildtool/main/describe.cpp b/src/buildtool/main/describe.cpp
index 07a8febc..18836bf6 100644
--- a/src/buildtool/main/describe.cpp
+++ b/src/buildtool/main/describe.cpp
@@ -296,6 +296,8 @@ auto DescribeTarget(BuildMaps::Target::ConfiguredTarget const& id,
}
if (BuildMaps::Target::IsBuiltInRule(*rule_it)) {
if (print_json) {
+ // For built-in rules, we have no user-defined description to
+ // provide other than informing the user that it is a built-in rule.
std::cout << nlohmann::json({{"type", *rule_it}}).dump(2)
<< std::endl;
return kExitSuccess;