[glib/wip/pwithnall/restore-macos-ci: 93/98] build: Add native argument to add_languages() for objc




commit dccc1ceebc1b3acdb4e716fba2fe55d182aadc05
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri May 27 14:23:09 2022 +0100

    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>

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index fd6545cadf..8542a8befa 100644
--- a/meson.build
+++ b/meson.build
@@ -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')


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