| ... | ... | @@ -203,7 +203,11 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void { |
| 203 | 203 | .cmake => |file_source| { |
| 204 | 204 | try output.appendSlice(c_generated_line); |
| 205 | 205 | const src_path = file_source.getPath(b); |
| 206 | | const contents = try std.fs.cwd().readFileAlloc(arena, src_path, self.max_bytes); |
| 206 | const contents = std.fs.cwd().readFileAlloc(arena, src_path, self.max_bytes) catch |err| { |
| 207 | return step.fail("unable to read cmake input file '{s}': {s}", .{ |
| 208 | src_path, @errorName(err), |
| 209 | }); |
| 210 | }; |
| 207 | 211 | try render_cmake(step, contents, &output, self.values, src_path); |
| 208 | 212 | }, |
| 209 | 213 | .blank => { |