-
Notifications
You must be signed in to change notification settings - Fork 36
Add -s STRICT=1 flag emscripten build #296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add -s STRICT=1 flag emscripten build #296
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #296 +/- ##
=======================================
Coverage 81.78% 81.78%
=======================================
Files 20 20
Lines 950 950
Branches 87 87
=======================================
Hits 777 777
Misses 173 173 🚀 New features to boost your workflow:
|
@@ -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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This --no-entry flag is to deal with the error here https://github.com/compiler-research/xeus-cpp/pull/296/checks?sha=4042234c05975b3bb37749ddd2cb6be932e4a638#step:5:167 , which comes after we make our build have strict=1 (e.g. have forwards compatibility)
fc9aead
to
ba47df0
Compare
Hi, Xeus-cpp's interpreter is based on xeus' xinterpreter, so we don't add flags directly here unless they are xeus-cpp specific (like the preloads). You should raise a PR for any generic flag here https://github.com/jupyter-xeus/xeus/blob/main/cmake/WasmBuildOptions.cmake#L21-L40 as these flags are propagated through this line Line 437 in 3c5328d
|
Description
Please include a summary of changes, motivation and context for this PR.
Taken from Emscripten documentation here https://emscripten.org/docs/tools_reference/settings_reference.html
Making sure the Emscripten build is done in such a way as to be forward compatible feels like a good feature to have.
Fixes # (issue)
Type of change
Please tick all options which are relevant.