Skip to content

windows: Statically link vcruntime DLL #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2023
Merged

Conversation

JohnAZoidberg
Copy link
Member

Otherwise it won't run on some freshly installed machines. Windows complains that vcruntime140.dll is missing. Users would have to install the MSVC C++ Redistributable package.

This is the same fix as in FrameworkComputer/qmk_hid#10. The measurements of that binary are:
On a local build of cargo clean; cargo build --release: Size of .exe before: 857 KB
Size of .exe after: 878 KB

Note: Only affects release builds! I think that's because the debug version of this DLL isn't redistributable.

Otherwise it won't run on some freshly installed machines.
Windows complains that `vcruntime140.dll` is missing.
Users would have to install the MSVC C++ Redistributable package.

This is the same fix as in FrameworkComputer/qmk_hid.
The measurements of that binary are:
On a local build of `cargo clean; cargo build --release`:
Size of .exe before: 857 KB
Size of .exe after: 878 KB

Note: Only affects release builds! I think that's because the debug version of this DLL isn't redistributable.

Signed-off-by: Daniel Schaefer <[email protected]>
@JohnAZoidberg JohnAZoidberg merged commit 423796c into main Jun 28, 2023
@JohnAZoidberg JohnAZoidberg deleted the static-vcruntime branch June 28, 2023 03:09
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.

1 participant