Skip to content

Commit 983cee9

Browse files
committed
Simplify arch/abi rename, add upcoming S390
1 parent 59b1324 commit 983cee9

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

www/index.js

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ function humanArchName(name, bits) {
165165
name = 'PowerPC'
166166
} else if (name === 'riscv') {
167167
name = 'RISC-V'
168+
} else if (name === 's390') {
169+
name = 'S390'
168170
}
169171

170172
return `${name} ${bits}-bit`
@@ -179,19 +181,9 @@ function humanAbiName(abi) {
179181
// arm64
180182
if (abi.startsWith('aarch'))
181183
return 'AArch' + abi.slice(5)
182-
// arm
183-
if (abi === 'oabi' || abi === 'eabi')
184-
return abi.toUpperCase()
185-
// mips
186-
if (abi === 'o32' || abi === 'o64' || abi === 'n64' || abi == 'n32')
187-
return abi.toUpperCase()
188-
// powerpc
189-
if (abi === 'spu' || abi === 'ppc64' || abi === 'ppc32')
190-
return abi.toUpperCase()
191-
// riscv
192-
if (abi === 'rv64' || abi === 'rv32')
193-
return abi.toUpperCase()
194-
return abi
184+
185+
// Anything else can just go uppercase
186+
return abi.toUpperCase()
195187
}
196188

197189
function favoriteArch(archs) {

0 commit comments

Comments
 (0)