diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compilation.zig | 12 | ||||
| -rw-r--r-- | src/Module.zig | 3 |
2 files changed, 1 insertions, 14 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index e792a9e6b6..ff50ce8d6c 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1681,8 +1681,7 @@ pub fn totalErrorCount(self: *Compilation) usize { var total: usize = self.failed_c_objects.count() + self.misc_failures.count(); if (self.bin_file.options.module) |module| { - total += module.failed_exports.items().len + - @boolToInt(module.failed_root_src_file != null); + total += module.failed_exports.items().len; for (module.failed_files.items()) |entry| { if (entry.value) |_| { @@ -1789,15 +1788,6 @@ pub fn getAllErrorsAlloc(self: *Compilation) !AllErrors { for (module.failed_exports.items()) |entry| { try AllErrors.add(module, &arena, &errors, entry.value.*); } - if (module.failed_root_src_file) |err| { - const file_path = try module.root_pkg.root_src_directory.join(&arena.allocator, &[_][]const u8{ - module.root_pkg.root_src_path, - }); - const msg = try std.fmt.allocPrint(&arena.allocator, "unable to read {s}: {s}", .{ - file_path, @errorName(err), - }); - try AllErrors.addPlain(&arena, &errors, msg); - } } if (errors.items.len == 0 and self.link_error_flags.no_entry_point_found) { diff --git a/src/Module.zig b/src/Module.zig index b74ef1cc81..6dc0b2a256 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -92,9 +92,6 @@ error_name_list: ArrayListUnmanaged([]const u8) = .{}, /// previous analysis. generation: u32 = 0, -/// When populated it means there was an error opening/reading the root source file. -failed_root_src_file: ?anyerror = null, - stage1_flags: packed struct { have_winmain: bool = false, have_wwinmain: bool = false, |
