Skip to content

build: statically link the CRT for MSVC targets#10930

Open
shalupov wants to merge 1 commit intouutils:mainfrom
shalupov:msvc-crt-static
Open

build: statically link the CRT for MSVC targets#10930
shalupov wants to merge 1 commit intouutils:mainfrom
shalupov:msvc-crt-static

Conversation

@shalupov
Copy link
Contributor

Windows MSVC builds currently depend on vcruntime140.dll at runtime because Rust defaults to dynamic CRT linking for MSVC targets. This makes the release binaries non-self-contained.

See discussion about binaries size difference and compatibility issues at #10929

fixes #10929

Windows MSVC builds currently depend on `vcruntime140.dll` at runtime because
Rust defaults to dynamic CRT linking for MSVC targets. This makes the release
binaries non-self-contained.

See discussion about binaries size difference and compatibility issues at uutils#10929

fixes uutils#10929
@oech3
Copy link
Contributor

oech3 commented Feb 15, 2026

Please add "fix #7162" to the comment

@shalupov
Copy link
Contributor Author

It does not automatically give Windows 7 compatibility:

image

@oech3
Copy link
Contributor

oech3 commented Feb 15, 2026

Hmm... Can we make everything static?

@shalupov
Copy link
Contributor Author

static in Windows world does not mean free of extra dll dependencies or using newer functions in e.g. kernel32, unfortunately. that is what x86_64-win7-windows-msvc target is for.

cargo +nightly build --target x86_64-win7-windows-msvc -p uu_rm -p uu_cat -p uu_df -p uu_du -Z build-std
image

But it is tier3 and even extended support for W7 ended 2023.

We can compile and test additional binaries .zip for W7

@oech3
Copy link
Contributor

oech3 commented Feb 15, 2026

OK. Thanlyou. But I don't hurry. (Myself does not use Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows MSVC release binaries require vcruntime140.dll

2 participants