diff options
| author | mo8it <mo8it@proton.me> | 2025-01-01 22:01:39 +0100 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2025-01-01 22:01:39 +0100 |
| commit | 0b55809bb9c75ecdb5018e214a5ee3aa0363348f (patch) | |
| tree | 9c56c1768360725b28bd66242f0f7cb91c25b2e3 /build.rs | |
| parent | bde6f7470c651c1d608eda6a18940b092a982184 (diff) | |
Fix building from source on Windows
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..79a1fad --- /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`"); +} |
