mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
54 lines
1.1 KiB
Ruby
54 lines
1.1 KiB
Ruby
MRuby::Build.new('debug') do |conf|
|
|
toolchain :gcc
|
|
enable_debug
|
|
|
|
# include all core GEMs
|
|
conf.gembox 'full-core'
|
|
conf.cc.flags += %w(-Werror=declaration-after-statement)
|
|
conf.compilers.each do |c|
|
|
c.defines += %w(MRB_GC_STRESS MRB_GC_FIXED_ARENA MRB_METHOD_CACHE)
|
|
end
|
|
|
|
build_mrbc_exec
|
|
end
|
|
|
|
MRuby::Build.new('full-debug') do |conf|
|
|
toolchain :gcc
|
|
enable_debug
|
|
|
|
# include all core GEMs
|
|
conf.gembox 'full-core'
|
|
conf.cc.defines = %w(MRB_ENABLE_DEBUG_HOOK)
|
|
|
|
conf.enable_test
|
|
end
|
|
|
|
MRuby::Build.new do |conf|
|
|
toolchain :gcc
|
|
|
|
# include all core GEMs
|
|
conf.gembox 'full-core'
|
|
conf.cc.flags += %w(-Werror=declaration-after-statement)
|
|
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(-Werror=declaration-after-statement -fpermissive)
|
|
conf.compilers.each do |c|
|
|
c.defines += %w(MRB_GC_FIXED_ARENA)
|
|
end
|
|
conf.enable_bintest
|
|
conf.enable_test
|
|
|
|
enable_cxx_abi
|
|
|
|
build_mrbc_exec
|
|
end
|