We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfc83bb + 77f6ffe commit 2d00f4aCopy full SHA for 2d00f4a
1 file changed
lib/mruby/gem.rb
@@ -109,7 +109,8 @@ def for_windows?
109
if build.kind_of?(MRuby::CrossBuild)
110
return %w(x86_64-w64-mingw32 i686-w64-mingw32).include?(build.host_target)
111
elsif build.kind_of?(MRuby::Build)
112
- return ('A'..'Z').to_a.any? { |vol| Dir.exist?("#{vol}:") }
+ return ('A'..'Z').to_a.any? { |vol| Dir.exist?("#{vol}:") } ||
113
+ ('a'..'z').to_a.any? { |vol| Dir.exist?("/#{vol}/") }
114
end
115
return false
116
0 commit comments