summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Aladjev <aladjev.andrew@gmail.com>2021-02-09 08:48:03 +0300
committerGitHub <noreply@github.com>2021-02-09 18:48:03 +1300
commit3c593f28ede99b77d4fe3258f9bda78dcee238a3 (patch)
tree6fae516f86968030d7751a01febdce02ffb5721f
parentfad7908a5de4ab08367914d53780ff6518d5f552 (diff)
Fixed default coroutine selection for musl.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3567 Merged-By: ioquatix <samuel@codeotaku.com>
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fc65234..87a1375 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2472,7 +2472,10 @@ AS_CASE([$rb_cv_coroutine], [yes|''], [
rb_cv_coroutine=emscripten
],
[
- rb_cv_coroutine=ucontext
+ AC_CHECK_FUNCS([getcontext swapcontext makecontext],
+ [rb_cv_coroutine=ucontext],
+ [rb_cv_coroutine=copy; break]
+ )
]
)
AC_MSG_RESULT(${rb_cv_coroutine})