mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-09-11 11:41:14 +02:00
Merge pull request #2030 from rbenv/relax-rustc-version
Relax rustc version to 1.58.1
This commit is contained in:
commit
b0ef7c8bd0
1 changed files with 2 additions and 2 deletions
|
@ -1285,8 +1285,8 @@ build_package_enable_yjit() {
|
||||||
|
|
||||||
local rustc_ver="$(rustc --version 2>/dev/null)"
|
local rustc_ver="$(rustc --version 2>/dev/null)"
|
||||||
[ -n "$rustc_ver" ] || return 0
|
[ -n "$rustc_ver" ] || return 0
|
||||||
# Some kind of built-in bash comparison for dotted version strings would be awesome.
|
# YJIT supports Rust 1.58.1 and later
|
||||||
if [[ "${rustc_ver}" == *"rustc 1."[6789]* ]]; then
|
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
|
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
|
package_option ruby configure --enable-yjit
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue