From: Akihiko Odaki <akihiko.odaki@daynix.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Thomas Huth" <thuth@redhat.com>
Subject: Re: [PATCH v2] buildsys: Only display Objective-C information when Objective-C is used
Date: Mon, 9 Oct 2023 18:39:08 +0900 [thread overview]
Message-ID: <3cba450e-a4ba-47f7-ae6c-2e73304762e2@daynix.com> (raw)
In-Reply-To: <20231009093812.52915-1-philmd@linaro.org>
On 2023/10/09 18:38, Philippe Mathieu-Daudé wrote:
> When configuring with '--disable-cocoa --disable-coreaudio'
> on Darwin, we get:
>
> meson.build:4081:58: ERROR: Tried to access compiler for language "objc", not specified for host machine.
> meson.build:4097:47: ERROR: Tried to access unknown option 'objc_args'.
>
> Instead of unconditionally display Objective-C informations
> on Darwin, display them when Objective-C is discovered.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> v2: Emit 'false' (Akihiko)
> ---
> meson.build | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index 3bb64b536c..567c1c9add 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -4074,8 +4074,10 @@ if 'cpp' in all_languages
> else
> summary_info += {'C++ compiler': false}
> endif
> -if targetos == 'darwin'
> +if 'objc' in all_languages
> summary_info += {'Objective-C compiler': ' '.join(meson.get_compiler('objc').cmd_array())}
> +else
> + summary_info += {'Objective-C compiler': false}
> endif
> option_cflags = (get_option('debug') ? ['-g'] : [])
> if get_option('optimization') != 'plain'
> @@ -4085,7 +4087,7 @@ summary_info += {'CFLAGS': ' '.join(get_option('c_args') + option_cfl
> if 'cpp' in all_languages
> summary_info += {'CXXFLAGS': ' '.join(get_option('cpp_args') + option_cflags)}
> endif
> -if targetos == 'darwin'
> +if 'objc' in all_languages
> summary_info += {'OBJCFLAGS': ' '.join(get_option('objc_args') + option_cflags)}
> endif
> link_args = get_option('c_link_args')
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
prev parent reply other threads:[~2023-10-09 9:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-09 9:38 [PATCH v2] buildsys: Only display Objective-C information when Objective-C is used Philippe Mathieu-Daudé
2023-10-09 9:39 ` Akihiko Odaki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3cba450e-a4ba-47f7-ae6c-2e73304762e2@daynix.com \
--to=akihiko.odaki@daynix.com \
--cc=berrange@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).