summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-09-21 09:46:16 -0700
committerRichard Henderson <richard.henderson@linaro.org>2020-10-03 04:25:12 -0500
commitbcf368626cb33c4d8bf1c0c8fd1dcafb3c9f8d53 (patch)
tree95c2abf7401af0e2eb31c82bce3b5f32604f4e60
parenteef20e402c8ff5cacd86222288a722ce7e1a3cb8 (diff)
downloadfocaccia-qemu-bcf368626cb33c4d8bf1c0c8fd1dcafb3c9f8d53.tar.gz
focaccia-qemu-bcf368626cb33c4d8bf1c0c8fd1dcafb3c9f8d53.zip
capstone: Require version 4.0 from a system library
We're about to use a portion of the 4.0 API.
Reject a system library version prior to that.

Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to '')
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 8d6fb809bc..ccad7cabf1 100644
--- a/meson.build
+++ b/meson.build
@@ -737,8 +737,8 @@ capstone = not_found
 capstone_opt = get_option('capstone')
 if capstone_opt in ['enabled', 'auto', 'system']
   have_internal = fs.exists(meson.current_source_dir() / 'capstone/Makefile')
-  capstone = dependency('capstone', static: enable_static,
-                        method: 'pkg-config',
+  capstone = dependency('capstone', version: '>=4.0',
+                        static: enable_static, method: 'pkg-config',
                         required: capstone_opt == 'system' or
                                   capstone_opt == 'enabled' and not have_internal)
   if capstone.found()