From 0b069892ce90fce6c1778d87dad617c7418b83c7 Mon Sep 17 00:00:00 2001 From: Roza Date: Sun, 27 Dec 2020 03:27:38 -0500 Subject: [PATCH] Use -fdeclspec when building with Ruby 3 --- binding/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/binding/meson.build b/binding/meson.build index 6bad0356..c3b4af45 100644 --- a/binding/meson.build +++ b/binding/meson.build @@ -3,6 +3,8 @@ if get_option('mri_includes') == '' ver = get_option('mri_version') if ver.version_compare('<=1.8') global_args += '-DLEGACY_RUBY' + else if ver.version_compare('>=3.0') + global_args += '-fdeclspec' endif global_dependencies += dependency('ruby-' + ver) else