Skip to content

Commit 1b769b0

Browse files
authored
Windows: Statically linked C runtime (#3966)
1 parent 314cdbb commit 1b769b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.cargo/config.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
[alias]
22
dev = "run --package uv-dev"
3+
4+
# statically link the C runtime so the executable does not depend on
5+
# that shared/dynamic library.
6+
#
7+
# See: https://github.com/astral-sh/ruff/issues/11503
8+
[target.'cfg(all(target_env = "msvc", target_os = "windows"))']
9+
rustflags = ["-C", "target-feature=+crt-static"]

0 commit comments

Comments
 (0)