From 1697e32afa955ac1354feb7f3f2767a3b81f8981 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Tue, 16 Nov 2021 15:22:43 -0800 Subject: [PATCH] Let's try canonicalizing file paths in the manifest too... --- cranelift/codegen/build.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cranelift/codegen/build.rs b/cranelift/codegen/build.rs index ef045fef75..651377fb55 100644 --- a/cranelift/codegen/build.rs +++ b/cranelift/codegen/build.rs @@ -189,12 +189,8 @@ impl IsleCompilation { // One line in the manifest: . let mut hasher = Sha512::default(); hasher.update(content.as_bytes()); - writeln!( - &mut manifest, - "{} {:x}", - filename.display(), - hasher.finalize() - )?; + let filename = format!("{}", filename.display()).replace("\\", "/"); + writeln!(&mut manifest, "{} {:x}", filename, hasher.finalize())?; } Ok(manifest)