Integrate definition of `MRuby::Build#exefile`
MODIFY
lib/mruby/build.rb
lib/mruby/build.rb
@@ -270,8 +270,11 @@ EOS
def exefile(name)
if name.is_a?(Array)
name.flatten.map { |n| exefile(n) }
- else
+ elsif File.extname(name).empty?
"#{name}#{exts.executable}"
+ else
+ # `name` sometimes have (non-standard) extension (e.g. `.bat`).
+ name
end
end

MODIFY
mrbgems/mruby-bin-mruby-config/mrbgem.rake
mrbgems/mruby-bin-mruby-config/mrbgem.rake
-module MRuby
- class Build
- def exefile(name)
- if name.is_a?(Array)
- name.flatten.map { |n| exefile(n) }
- elsif name !~ /\./
- "#{name}#{exts.executable}"
- else
- name
- end
- end
- end
-end
-
MRuby.each_target do
next if kind_of? MRuby::CrossBuild

Integrate definition of `MRuby::Build#exefile`