Skip to content

Commit 2484a29

Browse files
committed
[emscripten] Remove -sWASM_BIGINT flag
This flag has been enabled by default in emscripten for a while now so I don't think we need this here anymore. Also remove the `-Wno-experimental` flag which is no longer needed for `-sMEMORY64`.
1 parent 1c4a085 commit 2484a29

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

CMakeLists.txt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -297,21 +297,6 @@ else() # MSVC
297297
endif()
298298

299299
if(EMSCRIPTEN)
300-
# Note: to debug with DWARF you will usually want to enable BIGINT support, as
301-
# that helps avoid running Binaryen on the wasm after link. Binaryen's DWARF
302-
# rewriting has known limitations, so avoiding it during link is recommended
303-
# where possible (like local debugging).
304-
#
305-
# Note that this is debug info for Binaryen itself, that is, when you are
306-
# debugging Binaryen source code. This flag has no impact on what Binaryen
307-
# does when run on wasm files.
308-
option(ENABLE_BIGINT "Enable wasm BigInt support" OFF)
309-
if(ENABLE_BIGINT)
310-
add_link_flag("-sWASM_BIGINT")
311-
else()
312-
add_link_flag("-sWASM_BIGINT=0")
313-
endif()
314-
315300
if("${CMAKE_BUILD_TYPE}" MATCHES "Release")
316301
# Extra check that cmake has set -O3 in its release flags.
317302
# This is really as an assertion that cmake is behaving as we expect.
@@ -359,7 +344,7 @@ if(EMSCRIPTEN)
359344
add_nondebug_compile_flag("-flto")
360345
endif()
361346
if(EMSCRIPTEN_ENABLE_WASM64)
362-
add_compile_flag("-sMEMORY64 -Wno-experimental")
347+
add_compile_flag("-sMEMORY64")
363348
add_link_flag("-sMEMORY64")
364349
endif()
365350
endif()

0 commit comments

Comments
 (0)