Clarify native runtime builds
Browse files- source/README.md +6 -2
source/README.md
CHANGED
|
@@ -10,14 +10,18 @@ prebuilt runtime automatically.
|
|
| 10 |
|
| 11 |
## Build
|
| 12 |
|
| 13 |
-
Install Go 1.26.1 or newer, then run:
|
| 14 |
|
| 15 |
```bash
|
| 16 |
go build -o vigil-runtime ./cmd/vigil-compact
|
| 17 |
```
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
The resulting binary dynamically loads ONNX Runtime when it starts. Pass the
|
| 20 |
-
shared library, model, and metadata paths
|
| 21 |
|
| 22 |
```bash
|
| 23 |
./vigil-runtime \
|
|
|
|
| 10 |
|
| 11 |
## Build
|
| 12 |
|
| 13 |
+
Install Go 1.26.1 or newer on the target platform, then run:
|
| 14 |
|
| 15 |
```bash
|
| 16 |
go build -o vigil-runtime ./cmd/vigil-compact
|
| 17 |
```
|
| 18 |
|
| 19 |
+
Build each operating system and architecture on a matching native runner. The
|
| 20 |
+
ONNX Go binding is platform-specific and is not intended for
|
| 21 |
+
`CGO_ENABLED=0` cross-compilation.
|
| 22 |
+
|
| 23 |
The resulting binary dynamically loads ONNX Runtime when it starts. Pass the
|
| 24 |
+
shared library, model, and metadata paths to the runtime:
|
| 25 |
|
| 26 |
```bash
|
| 27 |
./vigil-runtime \
|