Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,20 @@ AC_ARG_ENABLE([wasm-pthreads],
])
AC_MSG_RESULT([$enable_wasm_pthreads])

AC_MSG_CHECKING([for --enable-emscripten-syscalls])
AC_ARG_ENABLE([emscripten-syscalls],
[AS_HELP_STRING([--disable-emscripten-syscalls],
[Disable the Emscripten syscall overrides in Python/emscripten_syscalls.c (default is enabled for Emscripten)])],
[
AS_CASE([$ac_sys_system],
[Emscripten], [],
[AC_MSG_ERROR([--enable-emscripten-syscalls only applies to Emscripten])]
)
], [
enable_emscripten_syscalls=yes
])
AC_MSG_RESULT([$enable_emscripten_syscalls])

AC_MSG_CHECKING([for --with-suffix])
AC_ARG_WITH([suffix],
[AS_HELP_STRING([--with-suffix=SUFFIX], [set executable suffix to SUFFIX (default is empty, yes is mapped to '.exe')])],
Expand Down Expand Up @@ -5368,7 +5382,10 @@ PLATFORM_OBJS=

AS_CASE([$ac_sys_system],
[Emscripten], [
AS_VAR_APPEND([PLATFORM_OBJS], [' Python/emscripten_signal.o Python/emscripten_trampoline.o Python/emscripten_trampoline_wasm.o Python/emscripten_syscalls.o'])
AS_VAR_APPEND([PLATFORM_OBJS], [' Python/emscripten_signal.o Python/emscripten_trampoline.o Python/emscripten_trampoline_wasm.o'])
AS_VAR_IF([enable_emscripten_syscalls], [yes], [
AS_VAR_APPEND([PLATFORM_OBJS], [' Python/emscripten_syscalls.o'])
])
AS_VAR_APPEND([PLATFORM_HEADERS], [' $(srcdir)/Include/internal/pycore_emscripten_signal.h $(srcdir)/Include/internal/pycore_emscripten_trampoline.h'])
],
)
Expand Down
Loading