install: fix #1205

This commit is contained in:
undefined committed 2026-09-01 03:16:07 +08:00
1 parent 4423db72ff
commit 73b2e4d75d
1 file changed
+1 -1
+1 -1
View File
@@ -166,7 +166,7 @@ for (const line of lines) {
} }
let avx = true; let avx = true;
const cpuInfoFile = readFileSync('/proc/cpuinfo', 'utf-8'); const cpuInfoFile = readFileSync('/proc/cpuinfo', 'utf-8');
if (!cpuInfoFile.includes('avx') && !installAsJudge) { if (!cpuInfoFile.includes('avx') && process.arch === 'x64' && !installAsJudge) {
avx = false; avx = false;
log.warn('warn.avx'); log.warn('warn.avx');
warnings.push(['warn.avx']); warnings.push(['warn.avx']);