mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-01-13 16:16:28 +00:00
Fix building from source on Windows
This commit is contained in:
parent
bde6f7470c
commit
0b55809bb9
1 changed files with 6 additions and 0 deletions
6
build.rs
Normal file
6
build.rs
Normal file
|
@ -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`");
|
||||||
|
}
|
Loading…
Reference in a new issue