Use -fdeclspec when building with Ruby 3

This commit is contained in:
Struma 2020-12-27 03:27:38 -05:00 committed by Roza
parent d476aa98f3
commit 056f4dcf0c

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