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

Function fbuild_release_dir

ci/util/fbuild_compiledb.py:50–64  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

48
49
50def 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
67def was_compiled_with_fbuild(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected