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

Function _compute_link_environment_fingerprint

ci/wasm_build.py:285–295  ·  view source on GitHub ↗

Fingerprint link conditions that affect emcc/JS output.

(mode: str)

Source from the content-addressed store, hash-verified

283
284
285def _compute_link_environment_fingerprint(mode: str) -> str:
286 """Fingerprint link conditions that affect emcc/JS output."""
287 digest = hashlib.md5(usedforsecurity=False)
288 digest.update(f"mode:{mode}".encode())
289 digest.update(json.dumps(get_link_flags(mode)).encode())
290 digest.update(f"emcc_version:{_get_emcc_version_signature()}".encode())
291
292 for key in _LINK_ENV_VARS:
293 digest.update(f"{key}={os.environ.get(key, '')}".encode())
294
295 return digest.hexdigest()
296
297
298def _link_environment_fingerprint_matches(build_dir: Path, mode: str) -> bool:

Callers 2

_intercept_emcc_linkFunction · 0.85

Calls 4

get_link_flagsFunction · 0.90
updateMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected