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)