Hash the emcc args to detect when flags change and cache needs refresh.
(emcc_args: list[str])
| 1003 | |
| 1004 | |
| 1005 | def _compile_cache_key(emcc_args: list[str]) -> str: |
| 1006 | """Hash the emcc args to detect when flags change and cache needs refresh.""" |
| 1007 | return hashlib.sha256(json.dumps(emcc_args).encode()).hexdigest()[:16] |
| 1008 | |
| 1009 | |
| 1010 | def _fast_compile( |
no outgoing calls
no test coverage detected