From bc56ab743c4102ab04db2219b095f5b1ab1bcdbd Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Tue, 16 Nov 2021 15:11:56 -0800 Subject: [PATCH] ISLE build-script check logic: Canonicalize All The Things! writeln!() to a string on Windows to generate the expected manifest needs newline-character canonicalization, too. --- cranelift/codegen/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cranelift/codegen/build.rs b/cranelift/codegen/build.rs index adb99386c5..ef045fef75 100644 --- a/cranelift/codegen/build.rs +++ b/cranelift/codegen/build.rs @@ -272,7 +272,7 @@ fn maybe_rebuild_isle( // Canonicalize Windows line-endings into Unix line-endings in // the manifest text itself. let manifest = manifest.replace("\r\n", "\n"); - let expected_manifest = compilation.compute_manifest()?; + let expected_manifest = compilation.compute_manifest()?.replace("\r\n", "\n"); if manifest != expected_manifest { rebuild_compilations.push((compilation, expected_manifest)); }