From 2487eb5f162dc65837f2f21b2bd16832345b385a Mon Sep 17 00:00:00 2001 From: Long Ho <198255+longlho@users.noreply.github.com> Date: Wed, 16 Sep 2026 21:29:00 +0000 Subject: [PATCH] fix: statically link the MSVC runtime --- .cargo/config.toml | 2 ++ .changeset/static-msvc-runtime.md | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 .cargo/config.toml create mode 100644 .changeset/static-msvc-runtime.md diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 000000000..35c67ad3d --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.'cfg(all(windows, target_env = "msvc"))'] +rustflags = ["-C", "target-feature=+crt-static"] diff --git a/.changeset/static-msvc-runtime.md b/.changeset/static-msvc-runtime.md new file mode 100644 index 000000000..4e99b4a6a --- /dev/null +++ b/.changeset/static-msvc-runtime.md @@ -0,0 +1,5 @@ +--- +"@googleworkspace/cli": patch +--- + +Statically link the MSVC C runtime in Windows builds.