diff --git a/tasks/cross-ruby.rb b/tasks/cross-ruby.rb index b77d7b43dd..a7195b3c02 100644 --- a/tasks/cross-ruby.rb +++ b/tasks/cross-ruby.rb @@ -166,6 +166,7 @@ def verify_dll(dll, cross_ruby) RakeCompilerDock.sh <<-EOT, platform: plat gem install bundler --no-document && bundle && + find /usr/local/rvm/gems -name extensiontask.rb | while read f ; do sudo sed -i 's/callback.call(spec) if callback/@cross_compiling.call(spec) if @cross_compiling/' $f ; done && rake native:#{plat} pkg/#{HOE.spec.full_name}-#{plat}.gem MAKE='nice make -j`nproc`' RUBY_CC_VERSION=#{ENV["RUBY_CC_VERSION"]} EOT end