Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.29 KB

File metadata and controls

47 lines (34 loc) · 1.29 KB
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install 3.1.51 node-18.20.3-64bit
./emsdk activate 3.1.51 node-18.20.3-64bit
source ./emsdk_env.sh
echo "$EMSDK_NODE"
"$EMSDK_NODE" -v

# Build onnxruntime for WASM in the browser
./build-wasm-simd.sh 1.17.1

ONNX Runtime Build

This project is to build custom ONNX Runtime libraries which are not provided in the official releases.

Currently supports static library builds only with the default options.

Building Libraries

Prerequisites

Build Scripts

Build for native:

./build-static_lib.sh

Build for Wasm:

# Builds into output/wasm-static_lib/Release (non-SIMD by default)
./build-wasm-static_lib.sh

# Convenience wrappers that also package a versioned zip:
./build-wasm-nosimd.sh 1.23.2
./build-wasm-simd.sh 1.23.2