Skip to content

Commit

Permalink
Merge pull request #2008 from larskanis/cross_compiling
Browse files Browse the repository at this point in the history
Add a workaround for missing call to cross_compile block
  • Loading branch information
flavorjones authored Mar 22, 2020
2 parents 3909eb8 + 33e5b42 commit e587654
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/cross-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e587654

Please sign in to comment.