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

Function _check_all_with_examples_target

ci/meson/streaming_runner.py:140–166  ·  view source on GitHub ↗

Verify ``all-with-examples`` is in build.ninja; reconfigure if not. The marker file can desynchronize from the actual build configuration, so we reconfigure proactively to avoid a "target not found" error.

(ctx: StreamingContext)

Source from the content-addressed store, hash-verified

138
139
140def _check_all_with_examples_target(ctx: StreamingContext) -> None:
141 """Verify ``all-with-examples`` is in build.ninja; reconfigure if not.
142
143 The marker file can desynchronize from the actual build configuration,
144 so we reconfigure proactively to avoid a "target not found" error.
145 """
146 build_ninja = ctx.build_dir / "build.ninja"
147 if not build_ninja.exists():
148 return
149 try:
150 content = build_ninja.read_text(encoding="utf-8")
151 if "all-with-examples" not in content:
152 _ts_print("[MESON] ⚠️ Target 'all-with-examples' missing from build.ninja")
153 _ts_print("[MESON] 🔄 Forcing reconfiguration with enable_examples=true...")
154 setup_meson_build(
155 ctx.source_dir,
156 ctx.build_dir,
157 reconfigure=True,
158 debug=ctx.use_debug,
159 check=ctx.check,
160 build_mode=ctx.build_mode,
161 verbose=ctx.verbose,
162 enable_examples=True,
163 enable_unit_tests=True,
164 )
165 except (OSError, IOError):
166 pass
167
168
169def _streaming_no_tests_fallback(

Callers 1

run_streaming_pathFunction · 0.85

Calls 1

setup_meson_buildFunction · 0.90

Tested by

no test coverage detected