]> 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:07:16 +0000 (22:07 -0500)
committerKevin Day <kevin@kevux.org>
Fri, 9 Jun 2023 03:07:16 +0000 (22:07 -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/main/print/message.c

index 418e2da85ba20614f52ecd97b12b699dda9a4a25..8f9b9675df4b18cfe7906c7c01b775b42e94dd6f 100644 (file)
@@ -17,7 +17,7 @@ extern "C" {
     fl_print_format("%[Building%] ", print->to, print->set->important, print->set->important);
     fl_print_format("%[%Q%]", print->to, print->set->notable, setting_build->build_name, print->set->notable);
     fl_print_format("%[ using '%]", print->to, print->set->important, print->set->important);
-    fl_print_format("%[%Q%]", print->to, print->set->notable, main->setting.settings, print->set->notable);
+    fl_print_format("%[%Q%]", print->to, print->set->notable, build_arguments && build_arguments->used ? build_arguments->array[0] : main->setting.settings, print->set->notable);
 
     fl_print_format("%[' with modes '%]", print->to, print->set->important, print->set->important);