增强 Windows sccache wrapper 探测回退
使用限时真实 rustc wrapper 探测替代版本检查 探测失败或超时时回退到直接 rustc 同步更新 sccache 故障排障记录
This commit is contained in:
+2
-1
@@ -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;
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user