| ... | ... | @@ -5042,12 +5042,18 @@ fn spawnZigRc( |
| 5042 | 5042 | }, |
| 5043 | 5043 | .progress => { |
| 5044 | 5044 | node_name.clearRetainingCapacity(); |
| 5045 | | if (body.len > 0) { |
| 5045 | // <resinator> is a special string that indicates that the child |
| 5046 | // process has reached resinator's main function |
| 5047 | if (std.mem.eql(u8, body, "<resinator>")) { |
| 5048 | child_progress_node.setName(src_basename); |
| 5049 | } |
| 5050 | // Ignore 0-length strings since if multiple zig rc commands |
| 5051 | // are executed at the same time, only one will send progress strings |
| 5052 | // while the other(s) will send empty strings. |
| 5053 | else if (body.len > 0) { |
| 5046 | 5054 | try node_name.appendSlice(arena, "build 'zig rc'... "); |
| 5047 | 5055 | try node_name.appendSlice(arena, body); |
| 5048 | 5056 | child_progress_node.setName(node_name.items); |
| 5049 | | } else { |
| 5050 | | child_progress_node.setName(src_basename); |
| 5051 | 5057 | } |
| 5052 | 5058 | }, |
| 5053 | 5059 | else => {}, // ignore other messages |