[前][次][番号順一覧][スレッド一覧]

ruby-changes:74371

From: Nobuyoshi <ko1@a...>
Date: Sun, 6 Nov 2022 10:21:59 +0900 (JST)
Subject: [ruby-changes:74371] cb899a990a (master): Disable YJIT support when cross-compiling

https://git.ruby-lang.org/ruby.git/commit/?id=cb899a990a

From cb899a990a02ad86ffc27fa17308fe514cc6415c Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 6 Nov 2022 10:16:12 +0900
Subject: 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.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 9e2ba81a51..bb83865010 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3768,6 +3768,7 @@ AC_ARG_ENABLE(yjit, https://github.com/ruby/ruby/blob/trunk/configure.ac#L3768
 CARGO=
 CARGO_BUILD_ARGS=
 YJIT_LIBS=
+AS_IF([test "$cross_compiling" = yes], [YJIT_SUPPORT=no])
 AS_CASE(["${YJIT_SUPPORT}"],
 [yes|dev|stats|dev_nodebug], [
     AS_IF([test x"$enable_jit_support" = "xno"],
@@ -3776,7 +3777,6 @@ AS_CASE(["${YJIT_SUPPORT}"], https://github.com/ruby/ruby/blob/trunk/configure.ac#L3777
     AS_IF([test x"$RUSTC" = "xno"],
         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}"],
     [yes], [
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]