mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fdbfeaf533
You have to specify `TARGET` to specify a configuration, e.g. ``` rake TARGET=host-debug all test ``` When you port `mruby` to a new configuration: 1. copy an existing configuration under `target` directory 2. modify the new configuration file 3. build using the new configuration 4. send PR if you please
25 lines
514 B
Ruby
25 lines
514 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)
|
|
|
|
# Generate mruby debugger command (require mruby-eval)
|
|
conf.gem :core => "mruby-bin-debugger"
|
|
|
|
# bintest
|
|
# conf.enable_bintest
|
|
end
|