Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
infogulch
· 2y ago · 0 comments
If you're building rust on windows, try using the msvc toolchain. I switched scryer-prolog from `x86_64-pc-windows-gnu` to `x86_64-pc-windows-msvc` and got a binary size reduction of 10x, from 100MB to 10MB.
Comments
[–]
emi2k01
2y ago
Could it be that the gnu toolchain embeds the debug symbols in the binary and the msvc toolchain puts them on a separate pdb file?