Commit db1b7882 authored by dearblue's avatar dearblue

Avoid using `MRuby::CrossBuild.current`

This is because `MRuby::Build.currrent` and `MRuby::CrossBuild.current` are assignments to different instance variables.
parent 08d43652
...@@ -116,9 +116,10 @@ module MRuby ...@@ -116,9 +116,10 @@ module MRuby
@toolchains = [] @toolchains = []
@gem_dir_to_repo_url = {} @gem_dir_to_repo_url = {}
MRuby.targets[@name] = self.class.current = current = self MRuby.targets[@name] = current = self
end end
MRuby::Build.current = current
current.instance_eval(&block) current.instance_eval(&block)
current.build_mrbc_exec if current.libmruby_enabled? && @name == "host" current.build_mrbc_exec if current.libmruby_enabled? && @name == "host"
current.build_mrbtest if current.test_enabled? current.build_mrbtest if current.test_enabled?
......
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