MCPcopy Create free account
hub / github.com/FastLED/FastLED / _file_prefix_map_flags

Function _file_prefix_map_flags

ci/wasm_flags.py:64–69  ·  view source on GitHub ↗
(from_path: Path, to_prefix: str)

Source from the content-addressed store, hash-verified

62
63
64def _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
72def _lib_dwarf_prefix_map_flags(config: dict[str, Any], mode: str) -> list[str]:

Callers 1

Calls 2

_path_prefix_variantsFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected