-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update to newer VC version - at least VS 2015 #2112
Comments
Maybe this could be resolved by switching from bat/.github/workflows/CICD.yml Lines 136 to 146 in 282b702
|
I'm sorry. I didn't realize this was a Rust-based utility. I see on the Rust repo this issue has come up - see: rust-lang/rust#26258 From this documentation PR it seems you could statically link the CRT on Windows and then there would be no need of the vcredist. I tried this on a simple Rust "hello world" program and it appears to work: The exe size in bytes increased from 148480 (dynamically linked) to 250368 (statically linked) for a debug build. This might be worth exploring. Also see these docs on Rust and statically linking CRT. |
Thanks. The other option is to use the GNU toolchain. We also deploy executables which are built using that (bat-v0.20.0-x86_64-pc-windows-gnu.zip). There have been past discussions on this topic on this issue tracker. Might be valuable to summarize those here. I don't remember why we don't switch off the MSVC builds completely. |
Switching off MSVC builds? Does this imply that the GNU builds are somehow more robust, or more performant, or something like that? |
With this change, the bat choco install would find vcredist 2015-2019 already installed on most Windows 10 systems.
The text was updated successfully, but these errors were encountered: