mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix "undefined method `Pathname'"; fix #4895
This commit is contained in:
@@ -67,7 +67,7 @@ Set ANDROID_PLATFORM environment variable or set :platform parameter
|
||||
end
|
||||
|
||||
def home_path
|
||||
@home_path ||= Pathname(
|
||||
@home_path ||= Pathname.new(
|
||||
params[:ndk_home] ||
|
||||
ENV['ANDROID_NDK_HOME'] ||
|
||||
DEFAULT_NDK_HOMES.find { |path|
|
||||
@@ -124,7 +124,7 @@ Set ANDROID_PLATFORM environment variable or set :platform parameter
|
||||
path = home_path.join('toolchains', 'llvm' , 'prebuilt', 'windows*')
|
||||
Dir.glob(path.to_s){ |item|
|
||||
next if File.file?(item)
|
||||
path = Pathname(item)
|
||||
path = Pathname.new(item)
|
||||
break
|
||||
}
|
||||
path.basename
|
||||
|
||||
Reference in New Issue
Block a user