Explorar o código

Fix windows build

On windows, we need to double the `\`.
Robin Lambertz %!s(int64=7) %!d(string=hai) anos
pai
achega
636656c1e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      build.rs

+ 1 - 1
build.rs

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