Unverified Commit 31eb5f4e authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4152 from take-cheeze/build_debug_flag

Add debug flag to `MRuby::Build`
parents cca5e097 08bd0954
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment