Hash library archive mtime+size to detect when the engine changed.
(library_archive: Path)
| 1257 | |
| 1258 | |
| 1259 | def _link_cache_key(library_archive: Path) -> str: |
| 1260 | """Hash library archive mtime+size to detect when the engine changed.""" |
| 1261 | st = library_archive.stat() |
| 1262 | content = f"{st.st_mtime}:{st.st_size}".encode() |
| 1263 | return hashlib.sha256(content).hexdigest()[:16] |
| 1264 | |
| 1265 | |
| 1266 | def _intercept_emcc_link( |
no outgoing calls
no test coverage detected