Skip to content

Commit a47764b

Browse files
committed
static link
1 parent 6b872d2 commit a47764b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.cargo/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
[target.x86_64-pc-windows-gnu]
55
# 静态链接CRT运行时,避免依赖外部运行时库
66
rustflags = ["-C", "target-feature=+crt-static"]
7+
8+
[target.x86_64-pc-windows-msvc]
9+
# 在 MSVC 工具链下同样开启 CRT 静态链接(避免运行时依赖 vcruntime140.dll 等)
10+
rustflags = ["-C", "target-feature=+crt-static"]

0 commit comments

Comments
 (0)