diff options
author | Yuta Saito <kateinoigakukun@gmail.com> | 2022-01-16 00:37:54 +0900 |
---|---|---|
committer | Yuta Saito <kateinoigakukun@gmail.com> | 2022-01-19 11:19:06 +0900 |
commit | 420622b5a793186dfa533e7702913fd5e4764e0f (patch) | |
tree | 3b56e4ef9ff26891aaa92aadd9ee9561ef50d76e /tool | |
parent | d6d52a7d049fd802b37d0f594629bad2cdc6b8c2 (diff) |
[wasm] add no thread variant for freestanding environment
This implementation does nothing around preemptive context switching
because there is no native thread.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5407
Diffstat (limited to 'tool')
-rw-r--r-- | tool/m4/ruby_thread.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/m4/ruby_thread.m4 b/tool/m4/ruby_thread.m4 index 3831bc4c06..2e58eddb98 100644 --- a/tool/m4/ruby_thread.m4 +++ b/tool/m4/ruby_thread.m4 @@ -8,6 +8,9 @@ AC_ARG_WITH(thread, [mingw*], [ THREAD_MODEL=win32 ], + [wasi*], [ + THREAD_MODEL=none + ], [ AS_IF([test "$rb_with_pthread" = "yes"], [ THREAD_MODEL=pthread @@ -19,6 +22,7 @@ AC_ARG_WITH(thread, AS_CASE(["$THREAD_MODEL"], [pthread], [AC_CHECK_HEADERS(pthread.h)], [win32], [], +[none], [], [""], [AC_MSG_ERROR(thread model is missing)], [AC_MSG_ERROR(unknown thread model $THREAD_MODEL)]) |