Try target-feature=+crt-static

This commit is contained in:
Luke Street 2025-05-13 21:28:21 -06:00
parent 731b604c24
commit 1750af736a

View File

@ -1,5 +1,4 @@
[target.x86_64-pc-windows-msvc] # statically link the C runtime so the executable does not depend on
linker = "rust-lld" # that shared/dynamic library.
[target.'cfg(all(target_env = "msvc", target_os = "windows"))']
[target.aarch64-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"]
linker = "rust-lld"