summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/launch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/just_mr/launch.cpp')
-rw-r--r--src/other_tools/just_mr/launch.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/other_tools/just_mr/launch.cpp b/src/other_tools/just_mr/launch.cpp
index 7d2bdf25..0a061031 100644
--- a/src/other_tools/just_mr/launch.cpp
+++ b/src/other_tools/just_mr/launch.cpp
@@ -326,6 +326,20 @@ 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_to_build) {
+ if (not IsValidFileName(*invocation_log.dump_artifacts_to_build)) {
+ Logger::Log(
+ LogLevel::Error,
+ "Invalid file name for option --dump-artifacts_to_build: "
+ "{}",
+ nlohmann::json(*invocation_log.dump_artifacts_to_build)
+ .dump());
+ std::exit(kExitClargsError);
+ }
+ cmd.emplace_back("--dump-artifacts-to-build");
+ cmd.emplace_back(*log_dir /
+ *invocation_log.dump_artifacts_to_build);
+ }
if (does_build and invocation_log.dump_artifacts) {
if (not IsValidFileName(*invocation_log.dump_artifacts)) {
Logger::Log(