diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-12-21 23:31:17 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-12-21 23:31:17 +0900 |
| commit | 9f1167f7c925794e2061eca14222f8b6e0820ffb (patch) | |
| tree | aacfce1511f38529357ee2233df5eced12c1ee8d /tasks | |
| parent | 089bb6acad7e6c3977d1b36c943739b3447af6b8 (diff) | |
| download | mruby-9f1167f7c925794e2061eca14222f8b6e0820ffb.tar.gz mruby-9f1167f7c925794e2061eca14222f8b6e0820ffb.zip | |
Fix "undefined method `Pathname'"; fix #4895
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/toolchains/android.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/toolchains/android.rake b/tasks/toolchains/android.rake index c7df9ef80..0ac4d000c 100644 --- a/tasks/toolchains/android.rake +++ b/tasks/toolchains/android.rake @@ -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 |
