From 8ac0bb3f81a7de2fd3e0739c9638777300e343cd Mon Sep 17 00:00:00 2001 From: Gregory LEOCADIE Date: Mon, 28 Oct 2024 22:33:52 +0100 Subject: [PATCH] Try fixing static linking to VC Runtime --- builder/.cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 builder/.cargo/config.toml diff --git a/builder/.cargo/config.toml b/builder/.cargo/config.toml new file mode 100644 index 000000000..8f5f8b9aa --- /dev/null +++ b/builder/.cargo/config.toml @@ -0,0 +1,5 @@ +[build] +rustflags = ["-C", "relocation-model=pic"] + +[target.'cfg(target_os = "windows")'] +rustflags = ["-C", "relocation-model=pic", "-C", "target-feature=+crt-static"]