summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2013-11-24 20:38:47 +0900
committertake_cheeze <[email protected]>2013-11-24 20:38:47 +0900
commitf07ba44c696f29cb73ba26a4595c44a63d6e18a5 (patch)
treeb57717d449b127a9b1df87b7d267ec12268c1fb6 /tasks
parenta2e0c6ea3a104510ad3a5ecc0ee0f96297f6a550 (diff)
downloadmruby-f07ba44c696f29cb73ba26a4595c44a63d6e18a5.tar.gz
mruby-f07ba44c696f29cb73ba26a4595c44a63d6e18a5.zip
add enable_debug method to MRuby::Build and build debug version in travis-ci
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mruby_build.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/tasks/mruby_build.rake b/tasks/mruby_build.rake
index ff6110884..acaabfa81 100644
--- a/tasks/mruby_build.rake
+++ b/tasks/mruby_build.rake
@@ -87,6 +87,11 @@ module MRuby
MRuby.targets[@name].instance_eval(&block)
end
+ def enable_debug
+ compilers.each { |c| c.defines += %w(MRB_DEBUG) }
+ @mrbc.compile_options += ' -g'
+ end
+
def toolchain(name)
tc = Toolchain.toolchains[name.to_s]
fail "Unknown #{name} toolchain" unless tc