Windows: Statically linked C runtime (#3966)

This commit is contained in:
T-256 2024-06-03 10:48:07 +03:30 committed by GitHub
parent 314cdbb15b
commit 1b769b054c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,2 +1,9 @@
[alias]
dev = "run --package uv-dev"
# statically link the C runtime so the executable does not depend on
# that shared/dynamic library.
#
# See: https://github.com/astral-sh/ruff/issues/11503
[target.'cfg(all(target_env = "msvc", target_os = "windows"))']
rustflags = ["-C", "target-feature=+crt-static"]