We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4fc7f3 + b3038d4 commit 8e074f1Copy full SHA for 8e074f1
1 file changed
lib/mruby/build.rb
@@ -60,7 +60,7 @@ class << self
60
def mruby_config_path
61
path = ENV['MRUBY_CONFIG'] || ENV['CONFIG']
62
if path.nil? || path.empty?
63
- path = "#{MRUBY_ROOT}/build_config/default.rb"
+ path = File.file?("./build_config.rb") ? "./build_config.rb" : "#{MRUBY_ROOT}/build_config/default.rb"
64
elsif !File.file?(path) && !Pathname.new(path).absolute?
65
f = "#{MRUBY_ROOT}/build_config/#{path}.rb"
66
path = File.exist?(f) ? f : File.extname(path).empty? ? f : path
0 commit comments