diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-18 22:48:11 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-18 22:48:11 +0900 |
| commit | 0d96c1bb4098c4b98f495265d6de53cda5be12a6 (patch) | |
| tree | 48d4202d79dba95cc0f6024b635d52ec942eac75 | |
| parent | e5a3a37ae929bd7df4fa8aad1ba25eb1bd917cb1 (diff) | |
| parent | 0e4f438eca10d531b2824d7536bb6e8e2e811be6 (diff) | |
| download | mruby-0d96c1bb4098c4b98f495265d6de53cda5be12a6.tar.gz mruby-0d96c1bb4098c4b98f495265d6de53cda5be12a6.zip | |
Merge branch 'dearblue-break-in-conf'
| -rw-r--r-- | lib/mruby/build.rb | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb index b9f26d49f..a99c0f507 100644 --- a/lib/mruby/build.rb +++ b/lib/mruby/build.rb @@ -131,15 +131,18 @@ module MRuby end MRuby::Build.current = current - current.instance_eval(&block) - 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 + begin + current.instance_eval(&block) + ensure + 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 end + current.presym = Presym.new(current) if current.presym_enabled? end - current.presym = Presym.new(current) if current.presym_enabled? end def libmruby_enabled? |
