Skip to content

Commit 3c36953

Browse files
authored
Merge pull request #2960 from itowlson/vcruntime-static-link-terror
Statically link runtime into Windows binary
2 parents 6e9883e + 5d5e0a7 commit 3c36953

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ rustflags = ["-C", "target-feature=+fp16", "-C", "target-feature=+crt-static", "
99

1010
[target.x86_64-unknown-linux-musl]
1111
rustflags = ["-C", "target-feature=+crt-static", "-C", "link-self-contained=yes"]
12+
13+
[target.'cfg(all(windows, target_env = "msvc"))']
14+
rustflags = ["-C", "target-feature=+crt-static"]

0 commit comments

Comments
 (0)