diff --git a/.cargo/config.toml b/.cargo/config.toml index a676255328ee..7af3c2200a24 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -34,6 +34,10 @@ rustflags = ["-Z", "share-generics=y"] [target.x86_64-pc-windows-msvc] linker = "rust-lld" +rustflags = ["-C", "target-feature=+crt-static"] + +[target.i686-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"] [target.aarch64-pc-windows-msvc] linker = "rust-lld"