Unverified Commit b0ef7c8b authored by Hiroshi SHIBATA's avatar Hiroshi SHIBATA Committed by GitHub
Browse files

Merge pull request #2030 from rbenv/relax-rustc-version

Relax rustc version to 1.58.1
parents 1f6b94cc e71c4b94
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1285,8 +1285,8 @@ build_package_enable_yjit() {

  local rustc_ver="$(rustc --version 2>/dev/null)"
  [ -n "$rustc_ver" ] || return 0
  # Some kind of built-in bash comparison for dotted version strings would be awesome.
  if [[ "${rustc_ver}" == *"rustc 1."[6789]* ]]; then
  # YJIT supports Rust 1.58.1 and later
  if [[ "${rustc_ver}" =~ ^rustc\ 1\.(58\.1|59\.|[6789]\d\.) ]]; then
    echo "Building with YJIT by default because ${rustc_ver} is installed; add RUBY_CONFIGURE_OPTS='--disable-yjit' to disable explicitly" >&3
    package_option ruby configure --enable-yjit
  else