(args: argparse.Namespace, program: str)
| 519 | |
| 520 | |
| 521 | def _cargo_artifact_path(args: argparse.Namespace, program: str) -> pathlib.Path: |
| 522 | dir_name = "release" if args.release else "optimized" if args.optimized else "debug" |
| 523 | if args.sanitizer != "none": |
| 524 | artifact_path = MZ_ROOT / "target" / SANITIZER_TARGET / dir_name |
| 525 | else: |
| 526 | artifact_path = MZ_ROOT / "target" / dir_name |
| 527 | |
| 528 | return artifact_path / program |
| 529 | |
| 530 | |
| 531 | def _macos_codesign(path: str) -> None: |