diff options
author | Andrew Aladjev <[email protected]> | 2021-02-09 08:48:03 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-09 18:48:03 +1300 |
commit | 3c593f28ede99b77d4fe3258f9bda78dcee238a3 (patch) | |
tree | 6fae516f86968030d7751a01febdce02ffb5721f | |
parent | fad7908a5de4ab08367914d53780ff6518d5f552 (diff) |
Fixed default coroutine selection for musl.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3567
Merged-By: ioquatix <[email protected]>
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index fc6523408b..87a13758f2 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}) |