Return the canonical fbuild release dir for ``board_name``. Prefers the first of the candidate locations in :func:`_candidate_fbuild_release_dirs` that already exists, and falls back to the FastLED-orchestrated layout (``.build/pio/ /.fbuild/build/ /release/``) when none d
(project_root: Path, build_root: Path, board_name: str)
| 48 | |
| 49 | |
| 50 | def fbuild_release_dir(project_root: Path, build_root: Path, board_name: str) -> Path: |
| 51 | """Return the canonical fbuild release dir for ``board_name``. |
| 52 | |
| 53 | Prefers the first of the candidate locations in |
| 54 | :func:`_candidate_fbuild_release_dirs` that already exists, and falls back |
| 55 | to the FastLED-orchestrated layout |
| 56 | (``.build/pio/<board>/.fbuild/build/<env>/release/``) when none do — so |
| 57 | callers can still materialize artifacts there via |
| 58 | :func:`ensure_compile_commands`. |
| 59 | """ |
| 60 | candidates = _candidate_fbuild_release_dirs(project_root, build_root, board_name) |
| 61 | for cand in candidates: |
| 62 | if cand.exists(): |
| 63 | return cand |
| 64 | return candidates[0] |
| 65 | |
| 66 | |
| 67 | def was_compiled_with_fbuild( |
nothing calls this directly
no test coverage detected