Each WebAssembly module is a project that has build properties assigned to it. The most important of them are described here.
To access the build properties of a WebAssembly module, right-click the module and select "Properties".
To view the build environment properties, expand the "C/C++ Build" section in the "Properties" dialog window and click "Environment".
Figure 1. Build Environment Properties
The following environment variables can be modified in the WebAssembly build:
EMCC_SKIP_SANITY_CHECK
EMCC_WASM_BACKEND
error: unknown target triple 'asmjs-unknown-emscripten', please use -triple or -arch
or
shared:ERROR: emcc: WASM_BACKEND selected but could not find lld (wasm-ld): ...
EM_CACHE
EM_CONFIG
PATH
WASM_TOOLS_POSTFIX
To view the build settings properties, expand the "C/C++ Build" section in the "Properties" dialog window and click "Settings".
Figure 2. Build Settings Properties
The following tabs are customized to support building WebAssembly modules:
"Build Artifact" tab defines the artifact details. By default, the artifact name is set to be the same as the WebAssembly module project name and the artifact extension is set to "js". Do not change the extension, since it can break the build.