diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-18 22:47:00 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-18 22:47:00 +0900 |
| commit | 0e4f438eca10d531b2824d7536bb6e8e2e811be6 (patch) | |
| tree | 48d4202d79dba95cc0f6024b635d52ec942eac75 /lib | |
| parent | 99f00de0402dc9fb2b48428613952d5f10c7cc25 (diff) | |
| download | mruby-0e4f438eca10d531b2824d7536bb6e8e2e811be6.tar.gz mruby-0e4f438eca10d531b2824d7536bb6e8e2e811be6.zip | |
lib/mruby/build.rb: refactoring `ensure` clause; ref #5381
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mruby/build.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb index 77decad6d..a99c0f507 100644 --- a/lib/mruby/build.rb +++ b/lib/mruby/build.rb @@ -133,19 +133,15 @@ 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"] - elsif current.host? - current.build_mrbc_exec - end + if current.libmruby_enabled? && !current.mrbcfile_external? + if current.presym_enabled? + current.create_mrbc_build if current.host? || current.gems["mruby-bin-mrbc"] + elsif current.host? + current.build_mrbc_exec end - current.presym = Presym.new(current) if current.presym_enabled? end + current.presym = Presym.new(current) if current.presym_enabled? end end |
