summary refs log tree commit diff stats
path: root/tools/niminst
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2022-11-26 20:59:52 +0000
committerGitHub <noreply@github.com>2022-11-26 21:59:52 +0100
commitf644f046540a1a3a59aecf5468bc4d9ae0ea101f (patch)
tree777ac4a8b2b54cce39007fb59c5c2322ff22b871 /tools/niminst
parentc0daea7b3193194162d3715451fc7191966603aa (diff)
downloadNim-f644f046540a1a3a59aecf5468bc4d9ae0ea101f.tar.gz
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
Diffstat (limited to 'tools/niminst')
-rw-r--r--tools/niminst/makefile.nimf2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/niminst/makefile.nimf b/tools/niminst/makefile.nimf
index a1f3fa977..99dd78176 100644
--- a/tools/niminst/makefile.nimf
+++ b/tools/niminst/makefile.nimf
@@ -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/-.*//"')