Skip to content

Commit dcec348

Browse files
authored
Explicitly disable WASM_BIGINT in emcc build when the CMake flag is off (WebAssembly#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 WebAssembly#7163)
1 parent 0b37831 commit dcec348

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ if(EMSCRIPTEN)
337337
option(ENABLE_BIGINT "Enable wasm BigInt support" OFF)
338338
if(ENABLE_BIGINT)
339339
add_link_flag("-sWASM_BIGINT")
340+
else()
341+
add_link_flag("-sWASM_BIGINT=0")
340342
endif()
341343

342344
if("${CMAKE_BUILD_TYPE}" MATCHES "Release")

0 commit comments

Comments
 (0)