diff --git a/CMakeLists.txt b/CMakeLists.txt index bacd6e7f..9a0de9d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -441,6 +441,8 @@ if(EMSCRIPTEN) PUBLIC "SHELL: --preload-file ${XEUS_CPP_DATA_DIR}@/share/xeus-cpp" PUBLIC "SHELL: --preload-file ${XEUS_CPP_CONF_DIR}@/etc/xeus-cpp" PUBLIC "SHELL: --post-js ${CMAKE_CURRENT_SOURCE_DIR}/wasm_patches/post.js" + PUBLIC "SHELL: -s STRICT=1" + PUBLIC "SHELL: --no-entry" ) # TODO: Uncomment the above line regarding preloading clang's resource dir # once has been supported through cppinterop. diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 88e8be76..c34826d1 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -69,6 +69,7 @@ if(EMSCRIPTEN) PUBLIC "SHELL: --preload-file ${SYSROOT_PATH}/include@/include" PUBLIC "SHELL: --preload-file ../${XEUS_CPP_DATA_DIR}@/share/xeus-cpp" PUBLIC "SHELL: --preload-file ../${XEUS_CPP_CONF_DIR}@/etc/xeus-cpp" + PUBLIC "SHELL: -s STRICT=1" ) target_include_directories(test_xeus_cpp PRIVATE ${XEUS_CPP_INCLUDE_DIR})