summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-10-29 10:42:56 +0900
committerGitHub <[email protected]>2020-10-29 10:42:56 +0900
commit76eafa46082e43b33b107e845ebbfaa6ebae3155 (patch)
treeff07848865734b6246a82fb039b7fe7ed6685fd1 /Rakefile
parent78d185efb9ee62ae38b3f97c53372ae3a44fef51 (diff)
parent81c21088196fd92d08c253efc2feb8dbead88acf (diff)
downloadmruby-76eafa46082e43b33b107e845ebbfaa6ebae3155.tar.gz
mruby-76eafa46082e43b33b107e845ebbfaa6ebae3155.zip
Merge pull request #5098 from shuujii/revert-MRUBY_TARGET-mechanism
Revert `MRUBY_TARGET` mechanism; ref #5096
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 1 insertions, 8 deletions
diff --git a/Rakefile b/Rakefile
index 5c5a6e8eb..036894592 100644
--- a/Rakefile
+++ b/Rakefile
@@ -14,14 +14,7 @@ require "mruby-core-ext"
require "mruby/build"
# load configuration file
-if ENV['MRUBY_CONFIG']
- MRUBY_CONFIG = ENV['MRUBY_CONFIG']
- MRUBY_TARGET = File.basename(MRUBY_CONFIG, ".rb")
-else
- MRUBY_TARGET = ENV['MRUBY_TARGET'] || ENV['TARGET'] || "host"
- MRUBY_CONFIG = "#{MRUBY_ROOT}/target/#{MRUBY_TARGET}.rb"
-end
-load MRUBY_CONFIG
+MRUBY_CONFIG = MRuby::Build.load_config
# load basic rules
MRuby.each_target do |build|