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

ruby-changes:53626

From: samuel <ko1@a...>
Date: Tue, 20 Nov 2018 19:22:36 +0900 (JST)
Subject: [ruby-changes:53626] samuel:r65863 (trunk): Expose dependency between cont.c and coroutine implementation.

samuel	2018-11-20 19:17:24 +0900 (Tue, 20 Nov 2018)

  New Revision: 65863

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65863

  Log:
    Expose dependency between cont.c and coroutine implementation.

  Modified files:
    trunk/Makefile.in
    trunk/configure.ac
Index: configure.ac
===================================================================
--- configure.ac	(revision 65862)
+++ configure.ac	(revision 65863)
@@ -2329,18 +2329,21 @@ AC_MSG_CHECKING(native fiber implementat https://github.com/ruby/ruby/blob/trunk/configure.ac#L2329
 AS_CASE(["$target_cpu-$target_os"],
   [x*64-*], [
     AC_MSG_RESULT(amd64)
-    AC_DEFINE(FIBER_USE_COROUTINE, "coroutine/amd64/Context.h")
+    COROUTINE_H=coroutine/amd64/Context.h
+    AC_DEFINE_UNQUOTED(FIBER_USE_COROUTINE, ["$COROUTINE_H"])
     AC_LIBOBJ([coroutine/amd64/Context])
   ],
   [*86-*], [
     AC_MSG_RESULT(x86)
-    AC_DEFINE(FIBER_USE_COROUTINE, "coroutine/x86/Context.h")
+    COROUTINE_H=coroutine/x86/Context.h
+    AC_DEFINE_UNQUOTED(FIBER_USE_COROUTINE, ["$COROUTINE_H"])
     AC_LIBOBJ([coroutine/x86/Context])
   ]
   [*], [
     AC_MSG_RESULT(no)
   ]
 )
+AC_SUBST(X_FIBER_COROUTINE_H, [$COROUTINE_H])
 
 AS_IF([test x"$enable_pthread" = xyes], [
     for pthread_lib in thr pthread pthreads c c_r root; do
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 65862)
+++ Makefile.in	(revision 65863)
@@ -520,6 +520,8 @@ ext/extinit.$(OBJEXT): ext/extinit.c $(S https://github.com/ruby/ruby/blob/trunk/Makefile.in#L520
 
 enc/encinit.$(OBJEXT): enc/encinit.c $(SETUP)
 
+cont.$(OBJEXT): @X_FIBER_COROUTINE_H@
+
 test-bundled-gems-run:
 	$(Q) set -e; while read gem _; do \
 	  echo testing $$gem gem && \

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

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