From dcd15a10d2723701616e08166b151e3cb0c7de5a Mon Sep 17 00:00:00 2001 From: disigma Date: Wed, 1 Apr 2020 14:32:26 +0800 Subject: [PATCH] meson: Exclude gosxutils.m when building for iOS For ios, the Cocoa header file does not exist, which causes compilation errors --- glib/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/meson.build b/glib/meson.build index aaf5f00f59..cf836b6c7b 100644 --- a/glib/meson.build +++ b/glib/meson.build @@ -316,7 +316,7 @@ else platform_deps = [] endif -if host_system == 'darwin' +if glib_have_cocoa glib_sources += files('gosxutils.m') endif -- GitLab