From 33c306f47abb4da8451ad4106c47816367afed0d Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 21 May 2023 12:13:18 +0200 Subject: [PATCH] statically link crt --- .cargo/config.toml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index bd87de2..166ba1c 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,6 +1,20 @@ +#link crt statically on msvc + +[target.x86_64-pc-windows-msvc] +rustflags = ["-Ctarget-feature=+crt-static"] + +[target.i686-pc-windows-msvc] +rustflags = ["-Ctarget-feature=+crt-static"] + +[target.i586-pc-windows-msvc] +rustflags = ["-Ctarget-feature=+crt-static"] + +# enable sse,sse2,sse3,avx,avx2,fma + [target.'cfg(target_arch = "x86_64")'] -rustflags = "-C target-feature=+sse,+sse2,+sse3,+avx,+avx2,+fma" +rustflags = "-Ctarget-feature=+sse,+sse2,+sse3,+avx,+avx2,+fma" + +# use sparse crates.io protocol [registries.crates-io] protocol = "sparse" -