From 1f4fcf540d46abba28d2bd56014c30c2089c8d4b Mon Sep 17 00:00:00 2001 From: faumaray Date: Tue, 27 Oct 2026 13:01:10 +0300 Subject: [PATCH] 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 --- windows/.cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 windows/.cargo/config.toml diff --git a/windows/.cargo/config.toml b/windows/.cargo/config.toml new file mode 100644 index 0000000..3604303 --- /dev/null +++ b/windows/.cargo/config.toml @@ -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"]