Skip to content

Use a statically-linked runtime library - #399

Merged
janwilmans merged 1 commit into
CobaltFusion:developfrom
m417z:static-link
Jul 28, 2025
Merged

janwilmans merged 1 commit into
CobaltFusion:developfrom
m417z:static-link

Conversation

@m417z

@m417z m417z commented May 25, 2024 •

Copy link
Copy Markdown
Contributor

Otherwise, if the Visual C++ Redistributable isn't installed, the following error message pops up:
image

This causes the binary size to increase by around 250 KB, e.g. for DebugViewConsole.exe it goes from 447 KB to 695 KB, but I believe that for such a tool, having it functional on any machine for troubleshooting etc. is more important.

BTW a statically-linked runtime library was used in v1.8, but was changed with the introduction of cmake.

Reference for the cmake command:
https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html#variable:CMAKE_MSVC_RUNTIME_LIBRARY

Fixes #396.

@janwilmans

Copy link
Copy Markdown
Collaborator

@m417z thank you very much for bringing this to attention! I really appreciate the MR!

@janwilmans janwilmans self-assigned this Jul 27, 2025
@janwilmans
janwilmans merged commit f273d18 into CobaltFusion:develop Jul 28, 2025
@m417z
m417z deleted the static-link branch July 28, 2025 01:32
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.

removing the msvcp140.dll and msvcp140_1.dll dependencies in 1.9.0.28 binaray version.

2 participants