rbenv-ruby-build/share/ruby-build/truffleruby-1.0.0-rc6
Benoit Daloze 47074b9174 Use openssl from Homebrew for TruffleRuby on macOS
* The openssl built by ruby-build was not used by TruffleRuby,
  and causes https://github.com/oracle/truffleruby/issues/1818
* Improve error message when openssl from Homebrew is not available.
* Change the definition code so it checks the operating system too.
2019-11-21 16:41:12 +01:00

13 lines
605 B
Text

case $(uname -s) in
Linux)
install_package "truffleruby-1.0.0-rc6" "https://github.com/oracle/truffleruby/releases/download/vm-1.0.0-rc6/truffleruby-1.0.0-rc6-linux-amd64.tar.gz#a2514b1f992d9359de86a7e4faa5c14ad6b418e88fd7cf6e67cd9b2fdb1ae85d" truffleruby
;;
Darwin)
use_homebrew_openssl
install_package "truffleruby-1.0.0-rc6" "https://github.com/oracle/truffleruby/releases/download/vm-1.0.0-rc6/truffleruby-1.0.0-rc6-macos-amd64.tar.gz#de2af4e1115fa96245d143fa323234cc78cd6ab3e29d68cee4bb74064c97a124" truffleruby
;;
*)
colorize 1 "Unsupported operating system: Linux"
return 1
;;
esac