rbenv-ruby-build/share/ruby-build/truffleruby-22.2.0
Mislav Marohnić db600ccdfd TruffleRuby: remove explicit openssl@1.1 requirement on macOS
TruffleRuby build definitions used to explicitly rely on `brew --prefix openssl@1.1` on macOS and abort installation if that was not found. However, this check didn't take into account that the user might have set OPENSSL_PREFIX in their environment, or that they have another `openssl@*` version installed via Homebrew. This change removes the `use_homebrew_openssl` check and allows TruffleRuby to perform its own OpenSSL detection.

https://github.com/oracle/truffleruby/blob/vm-23.1.0/lib/truffle/truffle/openssl-prefix.rb#L14-L17
2023-10-20 15:09:45 +02:00

19 lines
1.1 KiB
Text

platform="$(uname -s)-$(uname -m)"
case $platform in
Linux-x86_64)
install_package "truffleruby-22.2.0" "https://github.com/oracle/truffleruby/releases/download/vm-22.2.0/truffleruby-22.2.0-linux-amd64.tar.gz#3f03f5cb7997f6f22e1867a1506a83714b9bcedd4eb2f4c08f9c965aa7b6e88d" truffleruby
;;
Linux-aarch64)
install_package "truffleruby-22.2.0" "https://github.com/oracle/truffleruby/releases/download/vm-22.2.0/truffleruby-22.2.0-linux-aarch64.tar.gz#8c898b7d847bdff78ac587b0afe7deccbfae46ca1dbd8cf05a8d572e8a059c48" truffleruby
;;
Darwin-x86_64)
install_package "truffleruby-22.2.0" "https://github.com/oracle/truffleruby/releases/download/vm-22.2.0/truffleruby-22.2.0-macos-amd64.tar.gz#c3190570643c09d5a437a4cc5f2f0e51a9a11da1d94a07a1f5abfbf9dacc0643" truffleruby
;;
Darwin-arm64)
install_package "truffleruby-22.2.0" "https://github.com/oracle/truffleruby/releases/download/vm-22.2.0/truffleruby-22.2.0-macos-aarch64.tar.gz#9551ffa608c2fa4c1af74c2c5b9f88256a54c477e46ead4b70056f1f18d0e1f9" truffleruby
;;
*)
colorize 1 "Unsupported platform: $platform"
return 1
;;
esac