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

Add more debug flags for GCC based compilers
This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-02-13 12:28:42 +09:00
+6 -1
View File
@@ -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