You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: parametrize the location of wasm-opt (#3454)
The wasm-opt binary may be available in different place than the local
directory (`./wasm-opt`) – for example, in /usr/bin/wasm-opt.
Similarly to the other parametrized WASM build options,
use WASM_OPT environment variable to identify the wanted binary,
with fallback to the previous value.
Even with the environment variable available,
the `hasOptimizer` is kept to make the optimization optional.
Signed-off-by: Jan Staněk <[email protected]>
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+1
Original file line number
Diff line number
Diff line change
@@ -159,6 +159,7 @@ an unbundled version instead of bundling one in `libnode.so`.
159
159
To enable this, pass `EXTERNAL_PATH=/path/to/global/node_modules/undici` to `build/wasm.js`.
160
160
Pass this path with `loader.js` appended to `--shared-builtin-undici/undici-path` in Node.js's `configure.py`.
161
161
If building on a non-Alpine Linux distribution, you may need to also set the `WASM_CC`, `WASM_CFLAGS`, `WASM_LDFLAGS` and `WASM_LDLIBS` environment variables before running `build/wasm.js`.
162
+
Similarly, you can set the `WASM_OPT` environment variable to utilize your own `wasm-opt` optimizer.
0 commit comments