qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] buildsys: Only display Objective-C information when Objectiv


From: Akihiko Odaki
Subject: Re: [PATCH] buildsys: Only display Objective-C information when Objective-C is used
Date: Mon, 9 Oct 2023 18:16:40 +0900
User-agent: Mozilla Thunderbird

On 2023/10/09 18:13, 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>
---
  meson.build | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 3bb64b536c..da1a9a7228 100644
--- a/meson.build
+++ b/meson.build
@@ -4074,7 +4074,7 @@ 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())}
  endif

Probably it's more kind if it emits "Objective-C compiler: false" as it does for C++ when the compiler is not available.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]