]> Kevux Git Server - fll/commitdiff
Bugfix: Use the custom build settings name if passed when printing current setting...
authorKevin Day <kevin@kevux.org>
Fri, 9 Jun 2023 03:09:24 +0000 (22:09 -0500)
committerKevin Day <kevin@kevux.org>
Fri, 9 Jun 2023 03:09:24 +0000 (22:09 -0500)
The message, such as:
  Building fss_read using 'settings' with modes 'monolithic', 'thread'.

Should instead be:
  Building fss_read using 'settings.main' with modes 'monolithic', 'thread'.

Use the custom settings name if the custom build arguments are passed to display the correct name.

level_3/fake/c/private-build.c

index d09d700b2dcc8d70b09057bbff8474e2accd6df8..976784360e99daa77491430bbd27f906eef2c69b 100644 (file)
@@ -846,7 +846,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
         fl_print_format("%r%[Building%] ", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
         fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data_build.setting.build_name, data->main->context.set.notable);
         fl_print_format("%[ using '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important);
-        fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->settings, data->main->context.set.notable);
+        fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, build_arguments && build_arguments->used ? build_arguments->array[0] : data->settings, data->main->context.set.notable);
 
         fl_print_format("%[' with modes '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important);