Use -fdeclspec when building with Ruby 3

This commit is contained in:
Roza 2020-12-27 03:27:38 -05:00
parent 1816bb145f
commit 0b069892ce

View file

@ -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