Skip to content

Commit

Permalink
Explicitly disable WASM_BIGINT in emcc build when the CMake flag is o…
Browse files Browse the repository at this point in the history
…ff (#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)
  • Loading branch information
dschuff authored Dec 19, 2024
1 parent 0b37831 commit dcec348
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit dcec348

Please sign in to comment.