(build_dir: Path)
| 70 | |
| 71 | |
| 72 | def _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 | |
| 98 | def _cleanup_stale_meson_lockfile(build_dir: Path) -> None: |
no test coverage detected