Commit a32ec182 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2721 from kou/add-more-debug-flags

Add more debug flags for GCC based compilers
parents 789177c8 a88cda8a
......@@ -94,7 +94,12 @@ module MRuby
end
def enable_debug
compilers.each { |c| c.defines += %w(MRB_DEBUG) }
compilers.each do |c|
c.defines += %w(MRB_DEBUG)
if toolchains.any? { |toolchain| toolchain == "gcc" }
c.flags += %w(-g3 -O0)
end
end
@mrbc.compile_options += ' -g'
end
......
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