lib.systems.parse: check if cpus are equal first

Rather than doing this last, we do it first. Saves a little time if
we're comparing to an identical platform
This commit is contained in:
Eman Resu
2026-05-03 16:48:10 -04:00
parent 833f05d099
commit acd5585a3b

View File

@@ -444,7 +444,8 @@ rec {
isCompatible =
with cpuTypes;
a: b:
any id [
b == a
|| any id [
# x86
(b == i386 && isCompatible a i486)
(b == i486 && isCompatible a i586)
@@ -482,9 +483,6 @@ rec {
# SPARC
(b == sparc && isCompatible a sparc64)
# identity
(b == a)
];
################################################################################