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

Function resolve_wasm_native_entries

ci/meson/native_launchers.py:172–193  ·  view source on GitHub ↗

Resolve compiler/archiver entries for the Meson WASM cross-file. Returns absolute paths to the seven compiled ctc-* native launchers. No Python-wrapper fallback — if ``compile_native()`` fails or any binary is missing, raises (clang-tool-chain >=1.5.1 is pinned and guarantees a

(project_root: Path)

Source from the content-addressed store, hash-verified

170
171
172def resolve_wasm_native_entries(project_root: Path) -> WasmNativeEntries:
173 """
174 Resolve compiler/archiver entries for the Meson WASM cross-file.
175
176 Returns absolute paths to the seven compiled ctc-* native launchers.
177 No Python-wrapper fallback — if ``compile_native()`` fails or any
178 binary is missing, raises (clang-tool-chain >=1.5.1 is pinned and
179 guarantees all seven launchers).
180
181 Raises:
182 RuntimeError: if ``compile_native()`` fails or any binary is missing.
183 """
184 launchers = _ensure_emcc_native_launcher(project_root)
185 return WasmNativeEntries(
186 c=launchers.emcc,
187 cpp=launchers.empp,
188 ar=launchers.emar,
189 strip=launchers.emstrip,
190 ranlib=launchers.emranlib,
191 nm=launchers.emnm,
192 wasm_ld=launchers.wasm_ld,
193 )
194
195
196def _find_zccache_binary() -> Optional[str]:

Callers 1

_render_wasm_cross_fileFunction · 0.85

Calls 2

WasmNativeEntriesClass · 0.85

Tested by

no test coverage detected