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

Function _resolve_fast_compiler_binary

ci/meson/native_launchers.py:358–377  ·  view source on GitHub ↗

Resolve raw clang++ binary path, bypassing the Python entry point wrapper. The Python wrapper (clang-tool-chain-cpp.EXE) has ~3.6 second startup overhead. Using the raw binary directly saves this overhead for operations like --version checks. Returns: Path to raw clang

()

Source from the content-addressed store, hash-verified

356
357
358def _resolve_fast_compiler_binary() -> Optional[str]:
359 """
360 Resolve raw clang++ binary path, bypassing the Python entry point wrapper.
361
362 The Python wrapper (clang-tool-chain-cpp.EXE) has ~3.6 second startup
363 overhead. Using the raw binary directly saves this overhead for operations
364 like --version checks.
365
366 Returns:
367 Path to raw clang++ binary, or None if resolution fails.
368 """
369 try:
370 from clang_tool_chain.platform.paths import find_tool_binary
371
372 return str(find_tool_binary("clang++"))
373 except KeyboardInterrupt as ki:
374 handle_keyboard_interrupt(ki)
375 return None # unreachable, satisfies type checker
376 except Exception:
377 return None

Callers 2

build_setup_envFunction · 0.90

Calls 1

Tested by

no test coverage detected