Skip to content

Commit

Permalink
dev: use bundle exec when cross-compiling
Browse files Browse the repository at this point in the history
Not doing this caused a problem when using the prerelease of
rake-compiler-dock from an in-directory gem location.
  • Loading branch information
flavorjones committed Dec 23, 2020
1 parent 2cb2b7c commit 19e3010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rakelib/cross-ruby.rake
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ namespace "gem" do
RakeCompilerDock.sh <<~EOT, platform: plat
gem install bundler --no-document &&
bundle &&
rake gem:#{plat}:builder MAKE='nice make -j`nproc`' FORCE_CROSS_COMPILING=true
bundle exec rake gem:#{plat}:builder MAKE='nice make -j`nproc`' FORCE_CROSS_COMPILING=true
EOT
end

Expand Down Expand Up @@ -279,7 +279,7 @@ namespace "gem" do

desc "build a jruby gem"
task "jruby" do
RakeCompilerDock.sh("gem install bundler --no-document && bundle && rake java gem",
RakeCompilerDock.sh("gem install bundler --no-document && bundle && bundle exec rake java gem",
rubyvm: "jruby", platform: "jruby")
end

Expand Down

0 comments on commit 19e3010

Please sign in to comment.