summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-26 15:14:39 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-26 15:39:25 +0200
commite736991eea0b5a1080281bd00e8267d1b97ff212 (patch)
tree24f0f43062effe426b9c1ad4feb8078fe0fa3f95
parent536f0f2122f0cdbde81bacfc33065d43176b30a4 (diff)
downloadjustbuild-e736991eea0b5a1080281bd00e8267d1b97ff212.tar.gz
analyse: fix reporting of internal erros
... by taking the correct map to report which targets failed to be analysed and also report about rules that failed to be analysed.
-rw-r--r--src/buildtool/main/analyse.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/main/analyse.cpp b/src/buildtool/main/analyse.cpp
index 78aee957..678b5721 100644
--- a/src/buildtool/main/analyse.cpp
+++ b/src/buildtool/main/analyse.cpp
@@ -201,7 +201,8 @@ namespace Target = BuildMaps::Target;
return std::nullopt;
}
DetectAndReportPending("expressions", expr_map, logger);
- DetectAndReportPending("targets", expr_map, logger);
+ DetectAndReportPending("rules", rule_map, logger);
+ DetectAndReportPending("targets", target_map, logger);
return std::nullopt;
}