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




commit 051af1bc814c734c703f4cbafd3c3c67447c0121
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 57a71f7694..7c5e40932f 100644
--- a/meson.build
+++ b/meson.build
@@ -791,7 +791,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]