fix(apple): gate shared-cache answers on platform and verified subcaches
- Use a supplied cache for a process only when it serves the process's CPU family and one of its LC_BUILD_VERSION or LC_VERSION_MIN platforms matches the cache's platform or alternate platform; slices now report platforms. A limitation names each root the cache was not used for, and why. - Treat an image listed in the cache but mapped in a missing or UUID-mismatched subcache as undetermined, list it in coverage.unverified_shared_cache_images, and mark coverage partial. - Keep a cache hit conditional when an earlier candidate is undeterminable. - Open a development cache's named subcaches beside its base name. - Describe absolute paths as not evaluated only when no cache is supplied. - Preflight dyld_info in verify:dyld-shared-cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
202661f83b
commit
305474df6c
@@ -19,6 +19,14 @@ import {
|
||||
const exec = promisify(execFile);
|
||||
|
||||
await preflightMacosBundleFixture();
|
||||
try {
|
||||
await exec("/usr/bin/xcrun", ["--find", "dyld_info"]);
|
||||
} catch (cause) {
|
||||
throw new Error(
|
||||
"dyld shared cache verification requires dyld_info from Command Line Tools (xcrun --find dyld_info failed)",
|
||||
{ cause },
|
||||
);
|
||||
}
|
||||
|
||||
/** The cache this host's dyld uses for native processes. */
|
||||
const hostCache = async () => {
|
||||
|
||||
Reference in New Issue
Block a user