Skip to content

Commit 7180dbc

Browse files
committed
define --bindir when installing from gem/gemspec
1 parent 598c925 commit 7180dbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/compiler.rb

+2
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def install_from_gem(gem)
297297
@utils.run(@local_toolchain,
298298
@gem, "install", gem,
299299
"--install-dir", @gems_dir,
300+
"--bindir", "#{@gems_dir}/bin",
300301
"--no-document")
301302

302303
if File.exist?(File.join(@gems_dir, "bin/#{@entrance}"))
@@ -398,6 +399,7 @@ def install_from_gemspec(gemspec)
398399
@utils.run(@local_toolchain,
399400
@gem, "install", gem,
400401
"--install-dir", @gems_dir,
402+
"--bindir", "#{@gems_dir}/bin",
401403
"--no-document")
402404

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

0 commit comments

Comments
 (0)