mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
3d056d084a
| Previous Name | New Name | |------------------------------|-------------------------| | MRB_ENABLE_ALL_SYMBOLS | MRB_USE_ALL_SYMBOLS | | MRB_ENABLE_SYMBOLL_ALL | MRB_USE_ALL_SYMBOLS | | MRB_ENABLE_CXX_ABI | MRB_USE_CXX_ABI | | MRB_ENABLE_CXX_EXCEPTION | MRB_USE_CXX_EXCEPTION | | MRB_ENABLE_DEBUG_HOOK | MRB_USE_DEBUG_HOOK | | MRB_DISABLE_DIRECT_THREADING | MRB_NO_DIRECT_THREADING | | MRB_DISABLE_STDIO | MRB_NO_STDIO | | ENABLE_LINENOISE | MRB_USE_LINENOISE | | ENABLE_READLINE | MRB_USE_READLINE | | DISABLE_MIRB_UNDERSCORE | MRB_NO_MIRB_UNDERSCORE | | DISABLE_GEMS | MRB_NO_GEMS | * `MRB_ENABLE_SYMBOLL_ALL` seems to be a typo, so it is fixed. * `MRB_` prefix is added to those without. * The previous names can also be used for compatibility.
38 lines
680 B
Ruby
38 lines
680 B
Ruby
MRuby::Build.new('full-debug') do |conf|
|
|
toolchain :gcc
|
|
enable_debug
|
|
|
|
# include all core GEMs
|
|
conf.gembox 'full-core'
|
|
conf.cc.defines += %w(MRB_GC_STRESS MRB_USE_DEBUG_HOOK)
|
|
|
|
conf.enable_test
|
|
end
|
|
|
|
MRuby::Build.new do |conf|
|
|
toolchain :gcc
|
|
|
|
# include all core GEMs
|
|
conf.gembox 'full-core'
|
|
conf.compilers.each do |c|
|
|
c.defines += %w(MRB_GC_FIXED_ARENA)
|
|
end
|
|
conf.enable_bintest
|
|
conf.enable_test
|
|
end
|
|
|
|
MRuby::Build.new('cxx_abi') do |conf|
|
|
toolchain :gcc
|
|
|
|
conf.gembox 'full-core'
|
|
conf.cc.flags += %w(-fpermissive)
|
|
conf.compilers.each do |c|
|
|
c.defines += %w(MRB_GC_FIXED_ARENA)
|
|
end
|
|
conf.enable_test
|
|
|
|
enable_cxx_abi
|
|
|
|
build_mrbc_exec
|
|
end
|