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

Function get_compiler_version

ci/wasm_compile_pch.py:58–75  ·  view source on GitHub ↗

Get emscripten compiler version string.

(emcc: str)

Source from the content-addressed store, hash-verified

56
57
58def get_compiler_version(emcc: str) -> str:
59 """Get emscripten compiler version string."""
60 try:
61 result = subprocess.run(
62 [emcc, "--version"],
63 capture_output=True,
64 text=True,
65 check=True,
66 timeout=10,
67 )
68 # Return first line which contains version info
69 return result.stdout.split("\n")[0].strip()
70 except KeyboardInterrupt as ki:
71 handle_keyboard_interrupt(ki)
72 raise
73 except Exception as e:
74 print(f"Warning: Could not get compiler version: {e}")
75 return "unknown"
76
77
78def compute_content_hash(file_path: Path) -> str:

Callers 2

needs_rebuildFunction · 0.70
compile_pchFunction · 0.70

Calls 3

printFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected