Unverified Commit fcc9b7fc authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #5230 from dearblue/mruby-config.2

Ignore `mruby-bin-config` in cross-building
parents 340f1f00 36376eba
......@@ -116,9 +116,10 @@ module MRuby
@toolchains = []
@gem_dir_to_repo_url = {}
MRuby.targets[@name] = self.class.current = current = self
MRuby.targets[@name] = current = self
end
MRuby::Build.current = current
current.instance_eval(&block)
current.build_mrbc_exec if current.libmruby_enabled? && @name == "host"
current.build_mrbtest if current.test_enabled?
......
unless MRuby::Build.current.kind_of?(MRuby::CrossBuild)
if MRuby::Build.current.kind_of?(MRuby::CrossBuild)
gemname = File.basename File.dirname __FILE__
buildname = MRuby::Build.current.name
$stderr.puts "WARN #{gemname} - This mrbgem is ignored within #{buildname}"
else
MRuby::Gem::Specification.new('mruby-bin-config') do |spec|
name = 'mruby-config'
spec.license = 'MIT'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment