Commit acd5585a authored by Eman Resu's avatar Eman Resu
Browse files

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
parent 833f05d0
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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)
    ];

  ################################################################################