Handle ppc CPU architecture (#20920)

* Remove confusing "ppc" block

The PowerPC arch is called "powerpc" in platforms.nim

The makefile shipped in release 1.6.10 populates the oFiles variable when myos=linux and mycpu=powerpc
mycpu=ppc instead leads to  ``no C code generated for: [linux: ppc].  Stop``

* Handle ucpu=ppc
This commit is contained in:
Federico Ceratto
2022-11-26 20:59:52 +00:00
committed by GitHub
parent c0daea7b31
commit f644f04654

View File

@@ -131,7 +131,7 @@ ifeq ($(ucpu),powerpc)
endif
endif
ifeq ($(ucpu),ppc)
mycpu = ppc
mycpu = powerpc
endif
ifneq (,$(filter $(ucpu), mips mips64))
mycpu = $(shell /bin/sh -c '"$(CC)" -dumpmachine | sed "s/-.*//"')