$ emcc -s WASM=1 -s ONLY_MY_CODE=1 -s EXPORTED_FUNCTIONS="['_board_init','_board_ref','_board_step']" -o output.js *.c
shared:ERROR: Attempt to set a non-existent setting: 'ONLY_MY_CODE'
- did you mean one of DOUBLE_MODE?
- perhaps a typo in emcc's -s X=Y notation?
- (see src/settings.js for valid values)
If you provide STANDALONE_WASM, then you get different runtime errors, like wasi_snapshot_preview1 not being provided. This tutorial seriously needs to be updated, as it provides more confusion than answers.
When following the tutorial, I'm getting this:
According to the Emscripten release notes,
ONLY_MY_CODE
is not longer supported: