September 2018
Intermediate to advanced
328 pages
9h 10m
English
We need to modify the default build step in the /.vscode/tasks.json file to accommodate our updated workflow. The arguments for the build step we used in our /book-examples project allowed us to compile whichever file was currently active in the editor. It also output the .wasm file into the same folder as the source C file. However, this configuration doesn't make sense for this project. We'll always compile the same C file that is output to the compiled .wasm file in a specific folder. To accomplish this, update the args array in the Build task in /.vscode/tasks.json with the following contents:
"args": [ "${workspaceFolder}/lib/main.c", "-Os", "-s", "WASM=1", "-s", "SIDE_MODULE=1", "-s", "BINARYEN_ASYNC_COMPILATION=0", ...Read now
Unlock full access