1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Update CMakeLists.txt (#665)

Introduce USE_EMSCRIPTEN_NO_WASM flag to build emulator without wasm dependencies.
This commit is contained in:
neodiX42 2023-04-04 16:35:25 +04:00 committed by GitHub
parent 8eb167b76a
commit 35889fa5f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,5 +51,8 @@ if (USE_EMSCRIPTEN)
target_link_options(emulator-emscripten PRIVATE -sENVIRONMENT=web)
target_link_options(emulator-emscripten PRIVATE -sFILESYSTEM=0)
target_link_options(emulator-emscripten PRIVATE -fexceptions)
if (USE_EMSCRIPTEN_NO_WASM)
target_link_options(emulator-emscripten PRIVATE -sWASM=0)
endif()
target_compile_options(emulator-emscripten PRIVATE -fexceptions)
endif()