-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
On Windows MSVC, statically link the C runtime #1613
Conversation
Before this change, rg.exe depended on vcruntime140.dll, which does not exist on a fresh install of Windows.
There is precedence for using this option. The |
The main downside to this change is it grows the binary size. For x64, it increases 2% from 4.14 MB to 4.24 MB. |
I suppose 0.1 MB is negligible here... An immediately usable binary is much better than having to find and download the venerable Visual C++ Redistributable in emergency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this, thank you! I'll also update the README which IIRC mentions installing vcruntime or similar.
Before this change, rg.exe depended on vcruntime140.dll, which does not exist on a fresh install of Windows. Closes #1613
Before this change, rg.exe depended on vcruntime140.dll, which does not exist on a fresh install of Windows. Closes #1613
See BurntSushi/ripgrep#1613 for explanations.
See BurntSushi/ripgrep#1613 for explanations.
See BurntSushi/ripgrep#1613 for explanations.
See BurntSushi/ripgrep#1613 for explanations.
Before this change, rg.exe depended on vcruntime140.dll, which does not exist on a fresh install of Windows. The missing DLL prevents rg.exe from starting.