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

Merge pull request #5164 from...

Merge pull request #5164 from shuujii/automatically-enable-MRB_ENABLE_DEBUG_HOOK-if-mruby-bin-debugger-is-used

Automatically enable `MRB_ENABLE_DEBUG_HOOK` if `mruby-bin-debugger` is used
parents 66d044ec 3179944e
...@@ -270,12 +270,14 @@ EOS ...@@ -270,12 +270,14 @@ EOS
end end
def define_rules def define_rules
use_mrdb = @gems.find{|g| g.name == "mruby-bin-debugger"}
compilers.each do |compiler| compilers.each do |compiler|
if respond_to?(:enable_gems?) && enable_gems? if respond_to?(:enable_gems?) && enable_gems?
compiler.defines -= %w(DISABLE_GEMS) compiler.defines -= %w(DISABLE_GEMS)
else else
compiler.defines += %w(DISABLE_GEMS) compiler.defines += %w(DISABLE_GEMS)
end end
compiler.defines |= %w(MRB_ENABLE_DEBUG_HOOK) if use_mrdb
compiler.define_rules build_dir, File.expand_path(File.join(File.dirname(__FILE__), '..', '..')) compiler.define_rules build_dir, File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
end end
end 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