mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
1eb71b008f
On 64bit platforms: `MRB_NAN_BOXING` On 32bit platforms: `MRB_WORD_BOXING` On debugging: `MRB_NO_BOXING`
24 lines
504 B
Ruby
24 lines
504 B
Ruby
MRuby::Build.new('host-debug') do |conf|
|
|
# load specific toolchain settings
|
|
|
|
# Gets set by the VS command prompts.
|
|
if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
|
|
toolchain :visualcpp
|
|
else
|
|
toolchain :gcc
|
|
end
|
|
|
|
enable_debug
|
|
|
|
# include the default GEMs
|
|
conf.gembox 'full-core'
|
|
|
|
# C compiler settings
|
|
conf.cc.defines = %w(MRB_ENABLE_DEBUG_HOOK MRB_NO_BOXING)
|
|
|
|
# Generate mruby debugger command (require mruby-eval)
|
|
conf.gem :core => "mruby-bin-debugger"
|
|
|
|
# bintest
|
|
end
|