Skip to content

Commit 8e074f1

Browse files
authored
Merge pull request mruby#6583 from buty4649/improve/build-config-file-detection
2 parents e4fc7f3 + b3038d4 commit 8e074f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mruby/build.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class << self
6060
def mruby_config_path
6161
path = ENV['MRUBY_CONFIG'] || ENV['CONFIG']
6262
if path.nil? || path.empty?
63-
path = "#{MRUBY_ROOT}/build_config/default.rb"
63+
path = File.file?("./build_config.rb") ? "./build_config.rb" : "#{MRUBY_ROOT}/build_config/default.rb"
6464
elsif !File.file?(path) && !Pathname.new(path).absolute?
6565
f = "#{MRUBY_ROOT}/build_config/#{path}.rb"
6666
path = File.exist?(f) ? f : File.extname(path).empty? ? f : path

0 commit comments

Comments
 (0)