Merge branch 'break-in-conf' of https://github.com/dearblue/mruby into dearblue-break-in-conf

parents e5a3a37a 199bbd73
...@@ -131,7 +131,12 @@ module MRuby ...@@ -131,7 +131,12 @@ module MRuby
end end
MRuby::Build.current = current MRuby::Build.current = current
begin
current.instance_eval(&block) current.instance_eval(&block)
rescue Exception => err
raise
ensure
unless err
if current.libmruby_enabled? && !current.mrbcfile_external? if current.libmruby_enabled? && !current.mrbcfile_external?
if current.presym_enabled? if current.presym_enabled?
current.create_mrbc_build if current.host? || current.gems["mruby-bin-mrbc"] current.create_mrbc_build if current.host? || current.gems["mruby-bin-mrbc"]
...@@ -141,6 +146,8 @@ module MRuby ...@@ -141,6 +146,8 @@ module MRuby
end end
current.presym = Presym.new(current) if current.presym_enabled? current.presym = Presym.new(current) if current.presym_enabled?
end end
end
end
def libmruby_enabled? def libmruby_enabled?
@enable_libmruby @enable_libmruby
......
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