From 0b55809bb9c75ecdb5018e214a5ee3aa0363348f Mon Sep 17 00:00:00 2001 From: mo8it Date: Wed, 1 Jan 2025 22:01:39 +0100 Subject: [PATCH] Fix building from source on Windows --- build.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 build.rs diff --git a/build.rs b/build.rs new file mode 100644 index 0000000000..79a1fadda0 --- /dev/null +++ b/build.rs @@ -0,0 +1,6 @@ +fn main() { + // Fix building from source on Windows because it can't handle file links. + #[cfg(windows)] + std::fs::copy("dev/Cargo.toml", "dev-Cargo.toml") + .expect("Failed to copy the file `dev/Cargo.toml` to `dev-Cargo.toml`"); +}