mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Updates build script to support MSYS2 drive letters, fixing build error with MSYS2.
This commit is contained in:
+2
-1
@@ -109,7 +109,8 @@ module MRuby
|
||||
if build.kind_of?(MRuby::CrossBuild)
|
||||
return %w(x86_64-w64-mingw32 i686-w64-mingw32).include?(build.host_target)
|
||||
elsif build.kind_of?(MRuby::Build)
|
||||
return ('A'..'Z').to_a.any? { |vol| Dir.exist?("#{vol}:") }
|
||||
return ('A'..'Z').to_a.any? { |vol| Dir.exist?("#{vol}:") } ||
|
||||
('a'..'z').to_a.any? { |vol| Dir.exist?("/#{vol}/") }
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user