(from_path: Path, to_prefix: str)
| 62 | |
| 63 | |
| 64 | def _file_prefix_map_flags(from_path: Path, to_prefix: str) -> list[str]: |
| 65 | normalized_prefix = to_prefix.replace("\\", "/").strip("/") |
| 66 | flags: list[str] = [] |
| 67 | for path_prefix in _path_prefix_variants(from_path): |
| 68 | flags.append(f"-ffile-prefix-map={path_prefix}={normalized_prefix}") |
| 69 | return flags |
| 70 | |
| 71 | |
| 72 | def _lib_dwarf_prefix_map_flags(config: dict[str, Any], mode: str) -> list[str]: |
no test coverage detected