增强 Windows sccache wrapper 探测回退

使用限时真实 rustc wrapper 探测替代版本检查

探测失败或超时时回退到直接 rustc

同步更新 sccache 故障排障记录
This commit is contained in:
2026-09-14 06:02:23 +00:00
committed by 孔令弘
parent 5cf5b541af
commit f955661146
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -154,11 +154,12 @@ function resolveLocalDevRustcWrapperBypass(options = {}) {
const sccacheAvailable =
options.sccacheAvailable ??
(() => {
const result = spawnSync('sccache', ['--version'], {
const result = spawnSync('sccache', ['rustc', '-vV'], {
cwd: repoRoot,
encoding: 'utf8',
shell: true,
windowsHide: true,
timeout: options.sccacheProbeTimeoutMs ?? 10_000,
});
return !result.error && result.status === 0;
})();