Statically link the CRT on Windows (#5717)

This commit is contained in:
Reilly Wood 2022-06-05 20:01:01 -04:00 committed by GitHub
parent e4a22799d5
commit 17a5aa3052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
# increase the default windows stack size
[target.x86_64-pc-windows-msvc] [target.x86_64-pc-windows-msvc]
rustflags = ["-C", "link-args=-stack:10000000"] # increase the default windows stack size
# statically link the CRT so users don't have to install it
rustflags = ["-C", "link-args=-stack:10000000", "-C", "target-feature=+crt-static"]
# keeping this but commentting out in case we need them in the future # keeping this but commentting out in case we need them in the future