Parse and format compilation errors.
(self, error_output: str)
| 284 | return info |
| 285 | |
| 286 | def _parse_compilation_errors(self, error_output: str) -> str: |
| 287 | """Parse and format compilation errors.""" |
| 288 | lines = error_output.strip().split('\n') |
| 289 | |
| 290 | error_lines = [] |
| 291 | for line in lines: |
| 292 | if "error:" in line or "Error:" in line: |
| 293 | error_lines.append(line.strip()) |
| 294 | elif error_lines and line.strip(): |
| 295 | error_lines.append(f" {line.strip()}") |
| 296 | |
| 297 | return '\n'.join(error_lines) if error_lines else error_output |
| 298 | |
| 299 | def get_kernel_info(self, compiled_kernel: Dict[str, Any]) -> Dict[str, Any]: |
| 300 | """Extract kernel information from compiled data.""" |