diff --git a/lib/compiler.rb b/lib/compiler.rb index 708252560..1c4995863 100644 --- a/lib/compiler.rb +++ b/lib/compiler.rb @@ -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}")) @@ -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}"))