| ... | @@ -3092,6 +3092,10 @@ pub fn totalErrorCount(comp: *Compilation) u32 { | ... | @@ -3092,6 +3092,10 @@ pub fn totalErrorCount(comp: *Compilation) u32 { |
| 3092 | if (zcu.intern_pool.global_error_set.getNamesFromMainThread().len > zcu.error_limit) { | 3092 | if (zcu.intern_pool.global_error_set.getNamesFromMainThread().len > zcu.error_limit) { |
| 3093 | total += 1; | 3093 | total += 1; |
| 3094 | } | 3094 | } |
| | 3095 | |
| | 3096 | for (zcu.failed_codegen.keys()) |_| { |
| | 3097 | total += 1; |
| | 3098 | } |
| 3095 | } | 3099 | } |
| 3096 | | 3100 | |
| 3097 | // The "no entry point found" error only counts if there are no semantic analysis errors. | 3101 | // The "no entry point found" error only counts if there are no semantic analysis errors. |
| ... | @@ -3237,6 +3241,9 @@ pub fn getAllErrorsAlloc(comp: *Compilation) !ErrorBundle { | ... | @@ -3237,6 +3241,9 @@ pub fn getAllErrorsAlloc(comp: *Compilation) !ErrorBundle { |
| 3237 | } | 3241 | } |
| 3238 | } | 3242 | } |
| 3239 | } | 3243 | } |
| | 3244 | for (zcu.failed_codegen.values()) |error_msg| { |
| | 3245 | try addModuleErrorMsg(zcu, &bundle, error_msg.*, &all_references); |
| | 3246 | } |
| 3240 | for (zcu.failed_exports.values()) |value| { | 3247 | for (zcu.failed_exports.values()) |value| { |
| 3241 | try addModuleErrorMsg(zcu, &bundle, value.*, &all_references); | 3248 | try addModuleErrorMsg(zcu, &bundle, value.*, &all_references); |
| 3242 | } | 3249 | } |