From 17a5aa3052548f8351c0aa4209c6615e4b9b4b99 Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Sun, 5 Jun 2022 20:01:01 -0400 Subject: [PATCH] Statically link the CRT on Windows (#5717) --- .cargo/config.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 45d9e00516..5e5df7c78e 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,6 +1,7 @@ -# increase the default windows stack size [target.x86_64-pc-windows-msvc] -rustflags = ["-C", "link-args=-stack:10000000"] +# increase the default windows stack size +# statically link the CRT so users don't have to install it +rustflags = ["-C", "link-args=-stack:10000000", "-C", "target-feature=+crt-static"] # keeping this but commentting out in case we need them in the future