Skip to content

Commit 08d2d58

Browse files
Remove crt-static for aarch64-pc-windows-msvc to fix ort linking
The prebuilt ONNX Runtime binaries from ort's download-binaries feature are built with dynamic CRT (/MD), which conflicts with +crt-static (/MT) causing unresolved symbols for CRT functions.
1 parent c39355c commit 08d2d58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
rustflags = ["-C", "target-feature=+crt-static"]
33

44
[target.aarch64-pc-windows-msvc]
5-
rustflags = ["-C", "target-feature=+crt-static"]
5+
rustflags = []
66

77
[target.x86_64-apple-darwin]
88
rustflags = ["-C", "link-args=-ObjC"]

0 commit comments

Comments
 (0)