Skip to content

Commit 35e7dbb

Browse files
committed
feat(windows): enable static CRT linking for Windows builds
1 parent 24e66ee commit 35e7dbb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

native/.cargo/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
[target.'cfg(target_env = "musl")']
22
rustflags = ["-C", "target-feature=-crt-static"]
33

4+
[target.x86_64-pc-windows-msvc]
5+
rustflags = ["-C", "target-feature=+crt-static"]
6+
7+
[target.aarch64-pc-windows-msvc]
8+
rustflags = ["-C", "target-feature=+crt-static"]
9+
410
[target.x86_64-linux-android]
511
rustflags = ["-C", "link-arg=-Wl,-z,max-page-size=16384"]
612

0 commit comments

Comments
 (0)