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

Function compute_flags_hash

ci/wasm_compile_pch.py:89–94  ·  view source on GitHub ↗

Compute hash of compilation flags for change detection.

(flags: dict[str, list[str]])

Source from the content-addressed store, hash-verified

87
88
89def compute_flags_hash(flags: dict[str, list[str]]) -> str:
90 """Compute hash of compilation flags for change detection."""
91 # Combine all flags into a single sorted string for consistent hashing
92 all_flags = sorted(flags["defines"] + flags["compiler_flags"])
93 flags_str = " ".join(all_flags)
94 return hashlib.sha256(flags_str.encode()).hexdigest()
95
96
97def load_metadata() -> dict[str, str]:

Callers 2

needs_rebuildFunction · 0.70
compile_pchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected