summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/launch.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-05-06 10:50:45 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-05-06 11:21:16 +0200
commit5f899a316dfed58be9c3fe9e81ba3102cf9e9e9e (patch)
treeb0678dca5bceeb5eb5c4276292ecf06be972e6e4 /src/other_tools/just_mr/launch.cpp
parentf249a220913f4421c58c9c6251e4f3dce67e251c (diff)
downloadjustbuild-5f899a316dfed58be9c3fe9e81ba3102cf9e9e9e.tar.gz
just-mr: only set profiling-induced --dump-artifacts if supported
... by the requested subcommand. In particular, do not set it for pure analyse requests.
Diffstat (limited to 'src/other_tools/just_mr/launch.cpp')
-rw-r--r--src/other_tools/just_mr/launch.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/other_tools/just_mr/launch.cpp b/src/other_tools/just_mr/launch.cpp
index 7d71da9a..ca21e268 100644
--- a/src/other_tools/just_mr/launch.cpp
+++ b/src/other_tools/just_mr/launch.cpp
@@ -87,6 +87,7 @@ auto CallJust(std::optional<std::filesystem::path> const& config_file,
bool supports_remote_properties{false};
bool supports_serve{false};
bool supports_dispatch{false};
+ bool does_build{false};
std::optional<std::pair<std::filesystem::path, std::string>> mr_config_pair{
std::nullopt};
@@ -135,6 +136,7 @@ auto CallJust(std::optional<std::filesystem::path> const& config_file,
kKnownJustSubcommands.at(*subcommand).remote_props;
supports_serve = kKnownJustSubcommands.at(*subcommand).serve;
supports_dispatch = kKnownJustSubcommands.at(*subcommand).dispatch;
+ does_build = kKnownJustSubcommands.at(*subcommand).does_build;
}
// build just command
std::vector<std::string> cmd = {common_args.just_path->string()};
@@ -324,7 +326,7 @@ auto CallJust(std::optional<std::filesystem::path> const& config_file,
cmd.emplace_back("--dump-plain-graph");
cmd.emplace_back(*log_dir / *invocation_log.graph_file_plain);
}
- if (invocation_log.dump_artifacts) {
+ if (does_build and invocation_log.dump_artifacts) {
if (not IsValidFileName(*invocation_log.dump_artifacts)) {
Logger::Log(
LogLevel::Error,