windows: the programs carry their C runtime

Statically linked (+crt-static): no vcruntime140.dll, so no Visual C++
Redistributable to install first. LNK4099 (the runtime's own PDBs) ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 13:01:10 +03:00
1 parent 2c4cdee7d3
commit 1f4fcf540d
1 file changed
+6
+6
View File
@@ -0,0 +1,6 @@
# The Windows programs carry their C runtime: vcruntime140.dll is not on every Windows (the
# Visual C++ Redistributable brings it), and nothing else should have to be installed first.
# (LNK4099: the static runtime's objects name Microsoft's own PDBs, which are not shipped; it
# is about their debug info only.)
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static", "-C", "link-arg=/ignore:4099"]