Skip to content

Commit

Permalink
Merge pull request #2960 from itowlson/vcruntime-static-link-terror
Browse files Browse the repository at this point in the history
Statically link runtime into Windows binary
  • Loading branch information
itowlson authored Dec 17, 2024
2 parents 6e9883e + 5d5e0a7 commit 3c36953
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ rustflags = ["-C", "target-feature=+fp16", "-C", "target-feature=+crt-static", "

[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=+crt-static", "-C", "link-self-contained=yes"]

[target.'cfg(all(windows, target_env = "msvc"))']
rustflags = ["-C", "target-feature=+crt-static"]

0 comments on commit 3c36953

Please sign in to comment.