diff options
author | Derek Schuff <dschuff@chromium.org> | 2024-12-19 12:12:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 20:12:42 +0000 |
commit | dcec348ded6d7ab7bf4b758bdb92107e4262dbf4 (patch) | |
tree | f2be00a8b0c4fd70cee5f107352cd101aab941ac | |
parent | 0b378312d74f93f65a9f54efd8b5baeab33c7074 (diff) | |
download | binaryen-dcec348ded6d7ab7bf4b758bdb92107e4262dbf4.tar.gz binaryen-dcec348ded6d7ab7bf4b758bdb92107e4262dbf4.tar.bz2 binaryen-dcec348ded6d7ab7bf4b758bdb92107e4262dbf4.zip |
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)
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a61676125..d02096fa0 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") |