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

ruby-changes:67169

From: Nobuyoshi <ko1@a...>
Date: Mon, 16 Aug 2021 18:32:47 +0900 (JST)
Subject: [ruby-changes:67169] 5087a6a924 (master): Fix COROUTINE_SRC on emscripten

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

From 5087a6a9244066f966b1d213142258f01a4bbd13 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 16 Aug 2021 13:45:30 +0900
Subject: Fix COROUTINE_SRC on emscripten

Select the C source if exists, otherwise the assembler source,
instead of selecting by the coroutine type.
---
 configure.ac | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index 755e556..2449887 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2573,14 +2573,9 @@ AS_CASE([$coroutine_type], [yes|''], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L2573
 COROUTINE_H=coroutine/$coroutine_type/Context.h
 AS_IF([test ! -f "$srcdir/$COROUTINE_H"],
       [AC_MSG_ERROR('$coroutine_type' is not supported as coroutine)])
-AS_CASE([$coroutine_type],
-    [ucontext|pthread], [
-        COROUTINE_SRC=coroutine/$coroutine_type/Context.c
-    ],
-    [
-        COROUTINE_SRC=coroutine/$coroutine_type/Context.'$(ASMEXT)'
-    ]
-)
+COROUTINE_SRC=coroutine/$coroutine_type/Context.c
+AS_IF([test ! -f "$srcdir/$COROUTINE_SRC"],
+      [COROUTINE_SRC=coroutine/$coroutine_type/Context.'$(ASMEXT)'])
 AC_DEFINE_UNQUOTED(COROUTINE_H, ["$COROUTINE_H"])
 AC_SUBST(X_COROUTINE_H, [$COROUTINE_H])
 AC_SUBST(X_COROUTINE_SRC, [$COROUTINE_SRC])
-- 
cgit v1.1


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

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