From: Kevin Day Date: Fri, 9 Jun 2023 03:07:16 +0000 (-0500) Subject: Bugfix: Use the custom build settings name if passed when printing current setting... X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=43555614f6937e1d59884304b70fde482f8ef898;p=fll Bugfix: Use the custom build settings name if passed when printing current setting being used. 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. --- diff --git a/level_3/fake/c/main/print/message.c b/level_3/fake/c/main/print/message.c index 418e2da..8f9b967 100644 --- a/level_3/fake/c/main/print/message.c +++ b/level_3/fake/c/main/print/message.c @@ -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);