cargo: link statically vcruntime

This commit is contained in:
Jakub Panek 2024-10-24 10:54:28 +02:00 committed by GitHub
parent 3a40e6b729
commit ef22ae0c6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

3
.cargo/config.toml Normal file
View File

@ -0,0 +1,3 @@
# Link runtime statically so Visual C++ Redist is not required
[target.'cfg(all(windows, target_env = "msvc"))']
rustflags = ["-C", "target-feature=+crt-static"]