Skip to content
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

Statically link vcredist #97

Open
Mothblocks opened this issue May 26, 2022 · 2 comments
Open

Statically link vcredist #97

Mothblocks opened this issue May 26, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Mothblocks
Copy link
Member

We faced issues with a few people where they couldn't use even old copies of rust-g because of obscure "The specific procedure could not be found" errors. Eventually they had to install vcredist AND restart their computer before it was fixed.

We should statically link vcredist to stop errors like these.

You just need this in .cargo/config.toml:

[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

(Also reminder to fix #86)

@Mothblocks Mothblocks added the enhancement New feature or request label May 26, 2022
@willox
Copy link
Contributor

willox commented May 26, 2022

[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

:)

@Mothblocks
Copy link
Member Author

gulp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants