Skip to content

Commit ba47df0

Browse files
committed
Add -s STRICT=1 flag emscripten build
1 parent 3c5328d commit ba47df0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ if(EMSCRIPTEN)
441441
PUBLIC "SHELL: --preload-file ${XEUS_CPP_DATA_DIR}@/share/xeus-cpp"
442442
PUBLIC "SHELL: --preload-file ${XEUS_CPP_CONF_DIR}@/etc/xeus-cpp"
443443
PUBLIC "SHELL: --post-js ${CMAKE_CURRENT_SOURCE_DIR}/wasm_patches/post.js"
444+
PUBLIC "SHELL: -s STRICT=1"
445+
PUBLIC "SHELL: --no-entry"
444446
)
445447
# TODO: Uncomment the above line regarding preloading clang's resource dir
446448
# once has been supported through cppinterop.

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ if(EMSCRIPTEN)
6969
PUBLIC "SHELL: --preload-file ${SYSROOT_PATH}/include@/include"
7070
PUBLIC "SHELL: --preload-file ../${XEUS_CPP_DATA_DIR}@/share/xeus-cpp"
7171
PUBLIC "SHELL: --preload-file ../${XEUS_CPP_CONF_DIR}@/etc/xeus-cpp"
72+
PUBLIC "SHELL: -s STRICT=1"
7273
)
7374

7475
target_include_directories(test_xeus_cpp PRIVATE ${XEUS_CPP_INCLUDE_DIR})

0 commit comments

Comments
 (0)