We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ee911 commit 501c237Copy full SHA for 501c237
1 file changed
lib/mruby/build.rb
@@ -60,7 +60,11 @@ 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"
+ if File.file?("./build_config.rb")
64
+ path = "./build_config.rb"
65
+ else
66
+ path = "#{MRUBY_ROOT}/build_config/default.rb"
67
+ end
68
elsif !File.file?(path) && !Pathname.new(path).absolute?
69
f = "#{MRUBY_ROOT}/build_config/#{path}.rb"
70
path = File.exist?(f) ? f : File.extname(path).empty? ? f : path
0 commit comments