Commit b72c014
fix(core.utils): hash extra_sources and use_libdevice in cache key
make_program_cache_key() only hashed options.as_bytes() which omits
NVVM-specific fields (extra_sources, use_libdevice). Two NVVM
compilations with different extra_sources could produce the same
cache key, returning wrong cached object code.
Also adds docstring warnings about pickle trust model (cache dirs
should be treated as trusted build artifacts) and path-backed
ObjectCode instability (normalize to bytes before caching).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e2e62c8 commit b72c014
1 file changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
76 | 90 | | |
77 | 91 | | |
78 | 92 | | |
| |||
256 | 270 | | |
257 | 271 | | |
258 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
259 | 289 | | |
260 | 290 | | |
261 | 291 | | |
| |||
0 commit comments