diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-08-20 15:11:10 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:51 +0900 |
| commit | b7fe929232544120cb81615851b0315ec1a8b360 (patch) | |
| tree | 2e7564cc35878fb5ee1ed118e5c00f07ac8b7ed2 /lib | |
| parent | 20ffc2206ae68545e09cd96b7027055d020a5eb5 (diff) | |
| download | mruby-b7fe929232544120cb81615851b0315ec1a8b360.tar.gz mruby-b7fe929232544120cb81615851b0315ec1a8b360.zip | |
Update `Rakefile`.
So that you can omit `host` target. Now `host-debug` works.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mruby/build.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb index c101a237f..3ad7f3c4c 100644 --- a/lib/mruby/build.rb +++ b/lib/mruby/build.rb @@ -247,9 +247,10 @@ EOS def mrbcfile return @mrbcfile if @mrbcfile - mrbc_build = MRuby.targets['host'] - gems.each { |v| mrbc_build = self if v.name == 'mruby-bin-mrbc' } - @mrbcfile = mrbc_build.exefile("#{mrbc_build.build_dir}/bin/mrbc") + unless gems.detect { |v| v.name == 'mruby-bin-mrbc' } + gem :core => "mruby-bin-mrbc" + end + @mrbcfile = self.exefile("#{self.build_dir}/bin/mrbc") end def compilers @@ -387,7 +388,8 @@ EOS end def mrbcfile - MRuby.targets['host'].exefile("#{MRuby.targets['host'].build_dir}/bin/mrbc") + host = MRuby.targets['host'] + host.exefile("#{host.build_dir}/bin/mrbc") end def run_test |
