From dcec348ded6d7ab7bf4b758bdb92107e4262dbf4 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Thu, 19 Dec 2024 12:12:42 -0800 Subject: [PATCH] Explicitly disable WASM_BIGINT in emcc build when the CMake flag is off (#7162) This handles the case where WASM_BIGINT is enabled by default by emcc. Binaryen's JS bindings do not currently work with bigint (see #7163) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6167612542..d02096fa06e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -337,6 +337,8 @@ if(EMSCRIPTEN) option(ENABLE_BIGINT "Enable wasm BigInt support" OFF) if(ENABLE_BIGINT) add_link_flag("-sWASM_BIGINT") + else() + add_link_flag("-sWASM_BIGINT=0") endif() if("${CMAKE_BUILD_TYPE}" MATCHES "Release")