tgstation / rust-g

Rust based libraries for tgstation
MIT License
28 stars 100 forks source link

Statically link vcredist #97

Open Mothblocks opened 2 years ago

Mothblocks commented 2 years ago

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)

willox commented 2 years ago
[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

:)

Mothblocks commented 2 years ago

gulp