[gobject-introspection/ebassi/rebased-girffi-exec-fix: 8/8] Correct logic for legacy ffi free_closure




commit d4d5fb294a89c5c25f966f5e8407d335c315b1c1
Author: Cimbali <me cimba li>
Date:   Tue Nov 2 12:37:44 2021 +0100

    Correct logic for legacy ffi free_closure
    
    Legacy logic, except:
    - on linux with recent libffi
    - on macOS with AMD64 architectures

 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index fc503b54..eb2bc5c9 100644
--- a/meson.build
+++ b/meson.build
@@ -152,7 +152,8 @@ endif
 libffi_dep = dependency('libffi',
   fallback : ['libffi', 'ffi_dep'])
 
-if host_system == 'darwin' and host_arch == 'aarch64' or host_system == 'linux' and 
libffi_dep.version().version_compare('< 3.4')
+if not (host_system == 'darwin' and host_arch == 'aarch64' or
+        host_system == 'linux' and libffi_dep.version().version_compare('>= 3.4'))
   config.set('LEGACY_GIRFFI_FREE', 1)
 endif
 


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