diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-04-25 12:03:41 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-04-25 13:11:59 +0200 |
commit | ca9b1fa2328cfa7f511c30191146147f0726a1a5 (patch) | |
tree | 6950a72f8c2c0b10699a05cfa323132266cba184 /src/other_tools/just_mr/launch.cpp | |
parent | 0346772958c3dee8e2c2343fabaf77924ae855ec (diff) | |
download | justbuild-ca9b1fa2328cfa7f511c30191146147f0726a1a5.tar.gz |
just-mr: support invocation-specifing artifact dumping
Diffstat (limited to 'src/other_tools/just_mr/launch.cpp')
-rw-r--r-- | src/other_tools/just_mr/launch.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/other_tools/just_mr/launch.cpp b/src/other_tools/just_mr/launch.cpp index cb0f70d2..7d71da9a 100644 --- a/src/other_tools/just_mr/launch.cpp +++ b/src/other_tools/just_mr/launch.cpp @@ -324,6 +324,17 @@ 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 (not IsValidFileName(*invocation_log.dump_artifacts)) { + Logger::Log( + LogLevel::Error, + "Invalid file name for option --dump-artifacts: {}", + nlohmann::json(*invocation_log.dump_artifacts).dump()); + std::exit(kExitClargsError); + } + cmd.emplace_back("--dump-artifacts"); + cmd.emplace_back(*log_dir / *invocation_log.dump_artifacts); + } if (invocation_log.profile) { if (not IsValidFileName(*invocation_log.profile)) { Logger::Log(LogLevel::Error, |