diff options
| author | KOBAYASHI Shuji <[email protected]> | 2020-12-06 15:14:09 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2020-12-06 15:14:09 +0900 |
| commit | de03e97a50e32437a41dcadb37359da3c319043a (patch) | |
| tree | 5a4be5ad4ba6dada75d46c3933c5ea0d6aad96ca /lib | |
| parent | 9e41ae4909ecb7be882f2d6af10b79ad8c7c2c9b (diff) | |
| download | mruby-de03e97a50e32437a41dcadb37359da3c319043a.tar.gz mruby-de03e97a50e32437a41dcadb37359da3c319043a.zip | |
Call `super` before creating `host` build in `MRuby::CrossBuild#initialize`
Call `super` (`block`) ahead so that creation of the `host` build can be
skipped if pre-built `mrbc` can be specified in the future.
close #5213.
Diffstat (limited to 'lib')
| -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 |
