From e0742a1115ce7d16ad4afe17136d319aab9d8bc0 Mon Sep 17 00:00:00 2001 From: Johann Woelper Date: Sun, 26 Nov 2023 08:36:38 +0100 Subject: [PATCH] Static windows build --- .cargo/config.toml | 8 ++++++++ .gitignore | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..bf0c644 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,8 @@ +# [build] +# rustflags = ["-C", "link-arg=-fuse-ld=lld"] + +# [profile.dev] +# lto = "off" + +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"] \ No newline at end of file diff --git a/.gitignore b/.gitignore index 514dd24..db0e80d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,4 @@ shortcuts.txt perf.* flamegraph.svg .notes -TODO -# for dev profile optimisations -.cargo/config.toml \ No newline at end of file +TODO \ No newline at end of file