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