mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[wasm] configure.ac: don't require dup and dup2 only for wasi
This commit is contained in:
parent
f72f01abd8
commit
df31fa4a51
Notes:
git
2022-01-19 11:19:38 +09:00
1 changed files with 8 additions and 1 deletions
|
@ -1930,7 +1930,14 @@ AC_DEFUN([RUBY_REQUIRE_FUNC], [
|
|||
AS_IF([test "$ac_cv_func_[]AS_TR_SH($1)" = yes], [],
|
||||
[AC_MSG_ERROR($1[() must be supported])])
|
||||
])
|
||||
|
||||
# dup and dup2 are always available except for WASI
|
||||
AS_CASE(["$target_os"],
|
||||
[wasi*], [],
|
||||
[
|
||||
m4_map_args_w([dup dup2], [RUBY_REQUIRE_FUNC(], [)])
|
||||
]
|
||||
)
|
||||
|
||||
AC_REPLACE_FUNCS(acosh)
|
||||
AC_REPLACE_FUNCS(cbrt)
|
||||
|
|
Loading…
Reference in a new issue