From 636656c1e6da0b6391b497816c493f894f904639 Mon Sep 17 00:00:00 2001 From: Robin Lambertz Date: Tue, 17 Apr 2018 17:56:38 +0200 Subject: [PATCH] Fix windows build On windows, we need to double the `\`. --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index ded38f7..178b0bb 100644 --- a/build.rs +++ b/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(); }