Merge pull request #12 from roblabla/patch-1

Fix build when path contains backslashes
This commit is contained in:
jethrogb 2018-04-17 09:08:53 -07:00 committed by GitHub
commit e32e97c925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
} }