meson: Only look for Objective-C compiler on macOS/iOS
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 4 Aug 2020 00:02:08 +0000 (05:32 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 4 Aug 2020 00:07:19 +0000 (05:37 +0530)
commit8c94e746f5ca4a980a18dc8733953653dde6d802
tree975f33f5a361bafb1fb6b85158a761ff5930d80c
parent141062c4d6d5d37a10bd1669f4ccf8ffd64f42f3
meson: Only look for Objective-C compiler on macOS/iOS

On Windows, MinGW-GCC Objective-C compilers can be in PATH and mess up
the build since they may not match the CPU family of the C/C++
compilers we are using.

Also require them on macOS/iOS, because they should always be present.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/88

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/774>
meson.build