From 477cacf1551f6c92488eeed1a44e59fe6c47b0d2 Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Sun, 7 Jun 2020 23:16:26 -0400 Subject: [PATCH] cmake_traceparser: ignore parse error --- mesonbuild/cmake/traceparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/cmake/traceparser.py b/mesonbuild/cmake/traceparser.py index d94e77443..a24136004 100644 --- a/mesonbuild/cmake/traceparser.py +++ b/mesonbuild/cmake/traceparser.py @@ -139,7 +139,7 @@ class CMakeTraceParser: if not self.requires_stderr(): if not self.trace_file_path.exists and not self.trace_file_path.is_file(): raise CMakeException('CMake: Trace file "{}" not found'.format(str(self.trace_file_path))) - trace = self.trace_file_path.read_text() + trace = self.trace_file_path.read_text(errors='ignore') if not trace: raise CMakeException('CMake: The CMake trace was not provided or is empty')