1 parent 6b872d2 commit a47764bCopy full SHA for a47764b
1 file changed
.cargo/config.toml
@@ -4,3 +4,7 @@
4
[target.x86_64-pc-windows-gnu]
5
# 静态链接CRT运行时,避免依赖外部运行时库
6
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