mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-12 09:55:33 +02:00
Use -fdeclspec when building with Ruby 3
This commit is contained in:
parent
1816bb145f
commit
0b069892ce
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue