build: Add native argument to add_languages() for objc

This fixes the macOS build with Meson 0.54 or later.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-05-27 14:23:09 +01:00
parent d7c3b0fbf2
commit dccc1ceebc

View File

@ -792,7 +792,7 @@ glib_have_os_x_9_or_later = false
glib_have_carbon = false
glib_have_cocoa = false
if host_system == 'darwin'
add_languages('objc')
add_languages('objc', native: false, required: true)
objcc = meson.get_compiler('objc')
add_project_arguments(objcc.get_supported_arguments(warning_objc_args), language: 'objc')