Fix windows build

On windows, we need to double the `\`.
This commit is contained in:
Robin Lambertz 2018-04-17 17:56:38 +02:00 committed by GitHub
parent 2da6c7634d
commit 636656c1e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,6 @@ fn main() {
target_path.push("mod.rs");
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();
}