From 74781400dc765e07492970ac973f7eb48cb83460 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 12 Apr 2024 19:19:48 +0200 Subject: [PATCH] Avoid 128-bit arithmetic when on WebAssembly targets See https://github.com/WebAssembly/tool-conventions/pull/223#issuecomment-2052101191 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 0270e9dad4..50aa50e493 100644 --- a/configure.ac +++ b/configure.ac @@ -770,8 +770,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #ifndef NATIVE_LITTLE_ENDIAN # error libsodium currently expects a little endian CPU for the 128-bit type #endif -#ifdef __EMSCRIPTEN__ -# error emscripten currently doesn't support some operations on integers larger than 64 bits +#ifdef __wasm__ +# error 128-bit arithmetic in WebAssembly is slow #endif #include #include