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

Merge pull request #2040 from rbenv/fix-yjit-condition

bash didn't provide \d
parents 019c0115 87c525d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1286,7 +1286,7 @@ build_package_enable_yjit() {
  local rustc_ver="$(rustc --version 2>/dev/null)"
  [ -n "$rustc_ver" ] || return 0
  # YJIT supports Rust 1.58.1 and later
  if [[ "${rustc_ver}" =~ ^rustc\ 1\.(58\.1|59\.|[6789]\d\.) ]]; then
  if [[ "${rustc_ver}" =~ ^rustc\ 1\.(58\.1|59\.|[6789][0-9]\.) ]]; 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