From 35889fa5f5e20c05e016304d2bdf27e0d07e23bc Mon Sep 17 00:00:00 2001 From: neodiX42 Date: Tue, 4 Apr 2023 16:35:25 +0400 Subject: [PATCH] Update CMakeLists.txt (#665) Introduce USE_EMSCRIPTEN_NO_WASM flag to build emulator without wasm dependencies. --- emulator/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emulator/CMakeLists.txt b/emulator/CMakeLists.txt index 2fb27519..4e67d32c 100644 --- a/emulator/CMakeLists.txt +++ b/emulator/CMakeLists.txt @@ -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()