forked from abdul124/rust-core_io
Fix windows build
On windows, we need to double the `\`.
This commit is contained in:
parent
2da6c7634d
commit
636656c1e6
2
build.rs
2
build.rs
@ -73,6 +73,6 @@ fn main() {
|
|||||||
target_path.push("mod.rs");
|
target_path.push("mod.rs");
|
||||||
|
|
||||||
f.write_all(br#"#[path=""#).unwrap();
|
f.write_all(br#"#[path=""#).unwrap();
|
||||||
f.write_all(target_path.into_os_string().into_string().unwrap().as_bytes()).unwrap();
|
f.write_all(target_path.into_os_string().into_string().unwrap().replace("\\", "\\\\").as_bytes()).unwrap();
|
||||||
f.write_all(br#""] mod io;"#).unwrap();
|
f.write_all(br#""] mod io;"#).unwrap();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user