Skip to content

Commit 71619c7

Browse files
committed
Add note about bindings creation on Windows
1 parent d14a0bd commit 71619c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@ Generate the bindings:
201201
You can use [nbigaouette/windows_vagrant_rust](https://github.com/nbigaouette/windows_vagrant_rust)
202202
to provision a Windows VM that can build the project and generate the bindings.
203203

204+
Windows can build both x86 and x86_64 bindings:
205+
206+
```sh
207+
❯ rustup target add i686-pc-windows-msvc x86_64-pc-windows-msvc
208+
cd onnxruntime-sys
209+
❯ cargo build --features generate-bindings --target i686-pc-windows-msvc
210+
❯ cargo build --features generate-bindings --target x86_64-pc-windows-msvc
211+
```
212+
204213
## Conduct
205214

206215
The [Rust Code of Conduct](https://www.rust-lang.org/conduct.html) shall be respected. For

0 commit comments

Comments
 (0)