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
()
| 356 | |
| 357 | |
| 358 | def _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 |
no test coverage detected