Remove all PCH artifacts.
()
| 388 | |
| 389 | |
| 390 | def clean_pch() -> int: |
| 391 | """Remove all PCH artifacts.""" |
| 392 | print("Cleaning PCH artifacts...") |
| 393 | |
| 394 | removed_count = 0 |
| 395 | for artifact in [PCH_OUTPUT, PCH_DEPFILE, PCH_METADATA]: |
| 396 | if artifact.exists(): |
| 397 | artifact.unlink() |
| 398 | print(f" Removed: {artifact}") |
| 399 | removed_count += 1 |
| 400 | |
| 401 | if removed_count == 0: |
| 402 | print(" No PCH artifacts found to clean") |
| 403 | else: |
| 404 | print(f"✓ Cleaned {removed_count} PCH artifact(s)") |
| 405 | |
| 406 | return 0 |
| 407 | |
| 408 | |
| 409 | def main() -> int: |