mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add debug flag to MRuby::Build
This commit is contained in:
@@ -102,6 +102,10 @@ module MRuby
|
||||
build_mrbtest if test_enabled?
|
||||
end
|
||||
|
||||
def debug_enabled?
|
||||
@enable_debug
|
||||
end
|
||||
|
||||
def enable_debug
|
||||
compilers.each do |c|
|
||||
c.defines += %w(MRB_DEBUG)
|
||||
@@ -110,6 +114,8 @@ module MRuby
|
||||
end
|
||||
end
|
||||
@mrbc.compile_options += ' -g'
|
||||
|
||||
@enable_debug = true
|
||||
end
|
||||
|
||||
def disable_cxx_exception
|
||||
|
||||
Reference in New Issue
Block a user