From 33742d941ff3e8e361c6d3a36071765b686cb94c Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 29 Oct 2020 11:32:46 +0900 Subject: Move `build_config.rb` -> `build_config/default.rb`; ref #5098 In addition, update the documents referring `build_config.rb` which is no longer used. The new `build_config.rb` describes the new configuration structure in the comment. --- lib/mruby/build.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb index d07890621..c9a7097b5 100644 --- a/lib/mruby/build.rb +++ b/lib/mruby/build.rb @@ -40,9 +40,9 @@ module MRuby class << self attr_accessor :current def load_config - path = ENV['MRUBY_CONFIG'] + path = ENV['MRUBY_CONFIG'] || ENV['CONFIG'] if path.nil? || path.empty? - path = "#{MRUBY_ROOT}/build_config.rb" + path = "#{MRUBY_ROOT}/build_config/default.rb" elsif !File.file?(path) && !Pathname.new(path).absolute? f = "#{MRUBY_ROOT}/build_config/#{path}.rb" path = File.exist?(f) ? f : File.extname(path).empty? ? f : path -- cgit v1.2.3