From 5f899a316dfed58be9c3fe9e81ba3102cf9e9e9e Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 6 May 2025 10:50:45 +0200 Subject: just-mr: only set profiling-induced --dump-artifacts if supported ... by the requested subcommand. In particular, do not set it for pure analyse requests. --- src/other_tools/just_mr/launch.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/other_tools/just_mr/launch.cpp') 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 const& config_file, bool supports_remote_properties{false}; bool supports_serve{false}; bool supports_dispatch{false}; + bool does_build{false}; std::optional> mr_config_pair{ std::nullopt}; @@ -135,6 +136,7 @@ auto CallJust(std::optional 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 cmd = {common_args.just_path->string()}; @@ -324,7 +326,7 @@ auto CallJust(std::optional 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, -- cgit v1.2.3