mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Disable YJIT support when cross-compiling
As the target-list of `rustc` is different from `config.guess` and `config.sub`, `$target` cannot be used directly.
This commit is contained in:
parent
1454f8f219
commit
cb899a990a
1 changed files with 1 additions and 1 deletions
|
@ -3768,6 +3768,7 @@ AC_ARG_ENABLE(yjit,
|
||||||
CARGO=
|
CARGO=
|
||||||
CARGO_BUILD_ARGS=
|
CARGO_BUILD_ARGS=
|
||||||
YJIT_LIBS=
|
YJIT_LIBS=
|
||||||
|
AS_IF([test "$cross_compiling" = yes], [YJIT_SUPPORT=no])
|
||||||
AS_CASE(["${YJIT_SUPPORT}"],
|
AS_CASE(["${YJIT_SUPPORT}"],
|
||||||
[yes|dev|stats|dev_nodebug], [
|
[yes|dev|stats|dev_nodebug], [
|
||||||
AS_IF([test x"$enable_jit_support" = "xno"],
|
AS_IF([test x"$enable_jit_support" = "xno"],
|
||||||
|
@ -3776,7 +3777,6 @@ AS_CASE(["${YJIT_SUPPORT}"],
|
||||||
AS_IF([test x"$RUSTC" = "xno"],
|
AS_IF([test x"$RUSTC" = "xno"],
|
||||||
AC_MSG_ERROR([rustc is required. Installation instructions available at https://www.rust-lang.org/tools/install])
|
AC_MSG_ERROR([rustc is required. Installation instructions available at https://www.rust-lang.org/tools/install])
|
||||||
)
|
)
|
||||||
AS_IF([test "$cross_compiling" = yes], [RUSTC="$RUSTC --target=$target"])
|
|
||||||
|
|
||||||
AS_CASE(["${YJIT_SUPPORT}"],
|
AS_CASE(["${YJIT_SUPPORT}"],
|
||||||
[yes], [
|
[yes], [
|
||||||
|
|
Loading…
Reference in a new issue