From e136cda9ef233d02ca59c997ec544a71a52ac40a Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Mon, 15 Jul 2024 18:31:55 -0500 Subject: [PATCH] cargo: build with crt-static on windows Avoids a runtime dependency on vcruntime140.dll Signed-off-by: Austin Seipp --- .cargo/config.toml | 2 ++ CHANGELOG.md | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000000..1180d5972f --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-pc-windows-msvc] +rustflags = ["-Ctarget-feature=+crt-static"] diff --git a/CHANGELOG.md b/CHANGELOG.md index b26e7da4f5..970612185b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). * `jj diff --git` no longer shows the contents of binary files. +* Windows binaries no longer depend on `vcruntime140.dll` to be installed + (normally through Visual Studio.) + ## [0.19.0] - 2024-07-03 ### Breaking changes