Skip to content

Commit

Permalink
define --bindir when installing from gem/gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
jakolehm committed Jan 13, 2019
1 parent 598c925 commit 7180dbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def install_from_gem(gem)
@utils.run(@local_toolchain,
@gem, "install", gem,
"--install-dir", @gems_dir,
"--bindir", "#{@gems_dir}/bin",
"--no-document")

if File.exist?(File.join(@gems_dir, "bin/#{@entrance}"))
Expand Down Expand Up @@ -398,6 +399,7 @@ def install_from_gemspec(gemspec)
@utils.run(@local_toolchain,
@gem, "install", gem,
"--install-dir", @gems_dir,
"--bindir", "#{@gems_dir}/bin",
"--no-document")

if File.exist?(File.join(@gems_dir, "bin/#{@entrance}"))
Expand Down

0 comments on commit 7180dbc

Please sign in to comment.