diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-04-15 13:29:31 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-04-16 13:09:11 +0200 |
commit | 112ff1861873de1eb2c40b521346ddb3db8b2fd3 (patch) | |
tree | d6ed02e3c31419a11136f38beb6a2cffe2794024 /src/buildtool/main | |
parent | bed0e82c24b123799764309a2468ccfe7eee8adc (diff) | |
download | justbuild-112ff1861873de1eb2c40b521346ddb3db8b2fd3.tar.gz |
just profile: include subcommand and its arguments
As parsing the the command-line is non-trivial, we include all the
relevant information about the command line in the profile. This
should also include the subcommand. For sake of completeness, we
also include the non-option arguments of the subcommand.
Diffstat (limited to 'src/buildtool/main')
-rw-r--r-- | src/buildtool/main/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 75c7ca73..7a7dc3f4 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -917,6 +917,7 @@ auto main(int argc, char* argv[]) -> int { Profile profile_data(arguments.analysis.profile); if (arguments.analysis.profile) { profile = &profile_data; + (*profile)->SetCLI(arguments); } // If no execution endpoint was given, the client should default to the |