* [RFC PATCH] meson.build: fix cosmetics of compiler display
@ 2021-05-21 13:44 Alex Bennée
2021-05-21 13:58 ` Thomas Huth
0 siblings, 1 reply; 2+ messages in thread
From: Alex Bennée @ 2021-05-21 13:44 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, thuth, Alex Bennée
If you specify something like --cc="ccache gcc" on your configure line
the summary output misses the rest of the cmd_array. Do some string
joining to make it complete.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
meson.build | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/meson.build b/meson.build
index 1559e8d873..ca65552f31 100644
--- a/meson.build
+++ b/meson.build
@@ -2510,15 +2510,15 @@ summary(summary_info, bool_yn: true, section: 'Configurable features')
summary_info = {}
summary_info += {'host CPU': cpu}
summary_info += {'host endianness': build_machine.endian()}
-summary_info += {'C compiler': meson.get_compiler('c').cmd_array()[0]}
-summary_info += {'Host C compiler': meson.get_compiler('c', native: true).cmd_array()[0]}
+summary_info += {'C compiler': ' '.join(meson.get_compiler('c').cmd_array())}
+summary_info += {'Host C compiler': ' '.join(meson.get_compiler('c', native: true).cmd_array())}
if link_language == 'cpp'
- summary_info += {'C++ compiler': meson.get_compiler('cpp').cmd_array()[0]}
+ summary_info += {'C++ compiler': ' '.join(meson.get_compiler('cpp').cmd_array())}
else
summary_info += {'C++ compiler': false}
endif
if targetos == 'darwin'
- summary_info += {'Objective-C compiler': meson.get_compiler('objc').cmd_array()[0]}
+ summary_info += {'Objective-C compiler': ' '.join(meson.get_compiler('objc').cmd_array())}
endif
if targetos == 'windows'
if 'WIN_SDK' in config_host
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC PATCH] meson.build: fix cosmetics of compiler display
2021-05-21 13:44 [RFC PATCH] meson.build: fix cosmetics of compiler display Alex Bennée
@ 2021-05-21 13:58 ` Thomas Huth
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Huth @ 2021-05-21 13:58 UTC (permalink / raw)
To: Alex Bennée, qemu-devel; +Cc: peter.maydell
On 21/05/2021 15.44, Alex Bennée wrote:
> If you specify something like --cc="ccache gcc" on your configure line
> the summary output misses the rest of the cmd_array. Do some string
> joining to make it complete.
>
> Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
> ---
> meson.build | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index 1559e8d873..ca65552f31 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -2510,15 +2510,15 @@ summary(summary_info, bool_yn: true, section: 'Configurable features')
> summary_info = {}
> summary_info += {'host CPU': cpu}
> summary_info += {'host endianness': build_machine.endian()}
> -summary_info += {'C compiler': meson.get_compiler('c').cmd_array()[0]}
> -summary_info += {'Host C compiler': meson.get_compiler('c', native: true).cmd_array()[0]}
> +summary_info += {'C compiler': ' '.join(meson.get_compiler('c').cmd_array())}
> +summary_info += {'Host C compiler': ' '.join(meson.get_compiler('c', native: true).cmd_array())}
> if link_language == 'cpp'
> - summary_info += {'C++ compiler': meson.get_compiler('cpp').cmd_array()[0]}
> + summary_info += {'C++ compiler': ' '.join(meson.get_compiler('cpp').cmd_array())}
> else
> summary_info += {'C++ compiler': false}
> endif
> if targetos == 'darwin'
> - summary_info += {'Objective-C compiler': meson.get_compiler('objc').cmd_array()[0]}
> + summary_info += {'Objective-C compiler': ' '.join(meson.get_compiler('objc').cmd_array())}
> endif
> if targetos == 'windows'
> if 'WIN_SDK' in config_host
> -- 2.20.1
>
Tested-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-21 14:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21 13:44 [RFC PATCH] meson.build: fix cosmetics of compiler display Alex Bennée
2021-05-21 13:58 ` Thomas Huth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.