buildsys: Only display Objective-C information when Objective-C is used
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 9 Oct 2023 06:51:29 +0000 (08:51 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 20 Oct 2023 12:46:06 +0000 (14:46 +0200)
commitd3b88b9cf6872b4dd9dcc39efefbe6d937d04057
treeaa6e12d88f3909eb23199f1b287f47d991d9c89c
parent401766e043f25fd7cef111c53d701a2fc95d249f
buildsys: Only display Objective-C information when Objective-C is used

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>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20231009093812.52915-1-philmd@linaro.org>
meson.build