From 860c684582eaac0c94d6004dd9afeaccc43bc4ff Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 27 Feb 2025 12:55:31 +0100 Subject: just-mr: support --profile in invocation logging Support passing on an invocation-specific --profile option when launching just. This allows routine profiling of builds. --- src/other_tools/just_mr/rc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/other_tools/just_mr/rc.cpp') diff --git a/src/other_tools/just_mr/rc.cpp b/src/other_tools/just_mr/rc.cpp index 6bfda2c5..67ef3e24 100644 --- a/src/other_tools/just_mr/rc.cpp +++ b/src/other_tools/just_mr/rc.cpp @@ -620,6 +620,11 @@ namespace { if (graph_file_plain->IsString()) { clargs->invocation_log.graph_file = graph_file_plain->String(); } + auto profile = + invocation_log->Get("--profile", Expression::none_t{}); + if (profile->IsString()) { + clargs->invocation_log.profile = profile->String(); + } } } // read config lookup order -- cgit v1.2.3