diff options
| -rw-r--r-- | tasks/mruby_build.rake | 3 | ||||
| -rw-r--r-- | tasks/ruby_ext.rake | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/tasks/mruby_build.rake b/tasks/mruby_build.rake index 3ce2f4992..b9e0d2749 100644 --- a/tasks/mruby_build.rake +++ b/tasks/mruby_build.rake @@ -63,12 +63,11 @@ module MRuby if ENV['OS'] == 'Windows_NT' @exts = Exts.new('.o', '.exe', '.a') - @file_separator = '\\' else @exts = Exts.new('.o', '', '.a') - @file_separator = '/' end + @file_separator = '/' @cc = Command::Compiler.new(self, %w(.c)) @cxx = Command::Compiler.new(self, %w(.cc .cxx .cpp)) @objc = Command::Compiler.new(self, %w(.m)) diff --git a/tasks/ruby_ext.rake b/tasks/ruby_ext.rake index 22a8409d4..2536a2e4b 100644 --- a/tasks/ruby_ext.rake +++ b/tasks/ruby_ext.rake @@ -22,7 +22,11 @@ class String end str else - sprintf(self, params) + if params.is_a?(Array) + sprintf(self, *params) + else + sprintf(self, params) + end end end end |
