nim: fix power arch predicates

isPowerPC is only true on 32 bit machines;
to check the family we should use isPower here

Otherwise, e.g. `pkgsCross.powernv.buildPackages.nim` fails to eval with
`error: evaluation aborted with the following error message: 'no Nim CPU support known for powerpc64le-unknown-linux-gnu'`
This commit is contained in:
Ryan Burns 2021-09-17 03:31:44 -07:00 committed by ehmry
parent 921791e87a
commit b8779dbffe

View file

@ -22,9 +22,9 @@ let
"mips64"
else if isMsp430 then
"msp430"
else if isPowerPC && is32bit then
else if isPower && is32bit then
"powerpc"
else if isPowerPC && is64bit then
else if isPower && is64bit then
"powerpc64"
else if isRiscV && is64bit then
"riscv64"