meson: Only look for Obj-C/C++ compilers on macOS/iOS
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 4 Aug 2020 00:04:23 +0000 (05:34 +0530)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 4 Aug 2020 10:43:13 +0000 (10:43 +0000)
commit2881f6d728519b2a6ef2b357178f34a640452b9c
tree5a87f5c0ec1444f637aebdf0fd91adeb6673bfa4
parent6cf03b21f68ca1a4d47e642179c3f4b011354ca9
meson: Only look for Obj-C/C++ compilers on macOS/iOS

On Windows, MinGW-GCC Objective-C/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-bad/-/merge_requests/1488>
meson.build