(x: str)
| 17 | |
| 18 | |
| 19 | def strip_sccache(x: str) -> str: |
| 20 | sccache_marker = "=================== sccache compilation log ===================" |
| 21 | marker_pos = x.rfind(sccache_marker) |
| 22 | newline_before_marker_pos = x.rfind("\n", 0, marker_pos) |
| 23 | return x[:newline_before_marker_pos] |
| 24 | |
| 25 | |
| 26 | async def main( |