lib/mruby/build.rb: refactoring `ensure` clause; ref
MODIFY
lib/mruby/build.rb
lib/mruby/build.rb
@@ -133,10 +133,7 @@ module MRuby
MRuby::Build.current = current
begin
current.instance_eval(&block)
- rescue Exception => err
- raise
ensure
- unless err
if current.libmruby_enabled? && !current.mrbcfile_external?
if current.presym_enabled?
current.create_mrbc_build if current.host? || current.gems["mruby-bin-mrbc"]
@@ -147,7 +144,6 @@ module MRuby
current.presym = Presym.new(current) if current.presym_enabled?
end
end
- end
def libmruby_enabled?
@enable_libmruby

lib/mruby/build.rb: refactoring `ensure` clause; ref #5381