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

Function _normalize_meson_private_paths

ci/wasm_build.py:72–95  ·  view source on GitHub ↗
(build_dir: Path)

Source from the content-addressed store, hash-verified

70
71
72def _normalize_meson_private_paths(build_dir: Path) -> None:
73 from ci.meson.build_config import (
74 find_strict_path_violations,
75 normalize_meson_private_include_paths,
76 )
77
78 if normalize_meson_private_include_paths(build_dir):
79 print("[WASM] Normalized private include paths for strict path mode")
80
81 violations = find_strict_path_violations(build_dir)
82 if violations:
83 sample = violations[:10]
84 extra = len(violations) - len(sample)
85 lines = [
86 "[WASM] ZCCACHE_STRICT_PATHS=absolute would reject"
87 f" {len(violations)} compile flag(s) in"
88 " compile_commands.json (issue #2378):",
89 ]
90 lines.extend(f" {flag}" for flag in sample)
91 if extra > 0:
92 lines.append(f" ... {extra} more")
93 message = "\n".join(lines)
94 print(message)
95 raise RuntimeError(message)
96
97
98def _cleanup_stale_meson_lockfile(build_dir: Path) -> None:

Callers 2

ensure_meson_configuredFunction · 0.85

Calls 4

printFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected