diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-12-06 17:30:34 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-06 17:30:34 +0900 |
| commit | 8b52c67be9473571790dc10fbfd5fdbcdba5cef6 (patch) | |
| tree | 5a4be5ad4ba6dada75d46c3933c5ea0d6aad96ca | |
| parent | 9e41ae4909ecb7be882f2d6af10b79ad8c7c2c9b (diff) | |
| parent | de03e97a50e32437a41dcadb37359da3c319043a (diff) | |
| download | mruby-8b52c67be9473571790dc10fbfd5fdbcdba5cef6.tar.gz mruby-8b52c67be9473571790dc10fbfd5fdbcdba5cef6.zip | |
Merge pull request #5217 from shuujii/call-super-before-creating-host-build-in-MRubyCrossBuild-initialize
Call `super` before creating `host` build in `MRuby::CrossBuild#initialize`
| -rw-r--r-- | lib/mruby/build.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb index 63bc1f473..2e67fe5a6 100644 --- a/lib/mruby/build.rb +++ b/lib/mruby/build.rb @@ -390,6 +390,8 @@ EOS attr_accessor :host_target, :build_target def initialize(name, build_dir=nil, &block) + @test_runner = Command::CrossTestRunner.new(self) + super unless MRuby.targets['host'] # add minimal 'host' MRuby::Build.new('host') do |conf| @@ -402,8 +404,6 @@ EOS conf.disable_libmruby end end - @test_runner = Command::CrossTestRunner.new(self) - super end def mrbcfile |
