diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2022-12-01 04:48:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 12:48:47 +0800 |
commit | b36f5119ae3e4f450960a86ff77eaae4e9b05fcd (patch) | |
tree | 51b5eafb75ca68093fdc70613af4a99420d0f1dd /tools/niminst | |
parent | 17ac8c31bf1d3a4db283f58fa0eb673ad1450411 (diff) | |
download | Nim-b36f5119ae3e4f450960a86ff77eaae4e9b05fcd.tar.gz |
Add HPPA and sparc64 architectures (#20934)
* Add comments on CPU arch detection * Support HPPA/hppa/parisc64 CPU architecture * Support sparc64 CPU architecture * Update tools/niminst/makefile.nimf Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'tools/niminst')
-rw-r--r-- | tools/niminst/makefile.nimf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/niminst/makefile.nimf b/tools/niminst/makefile.nimf index 46b4892a0..2fe89ed69 100644 --- a/tools/niminst/makefile.nimf +++ b/tools/niminst/makefile.nimf @@ -16,6 +16,7 @@ endif target := ?{"$(binDir)/" & toLowerAscii(c.name)} + ucpu := $(shell sh -c 'uname -m | tr "[:upper:]" "[:lower:]"') ifeq ($(OS),Windows_NT) uos := windows @@ -103,12 +104,18 @@ endif ifeq ($(ucpu),x86_64) mycpu = amd64 endif +ifeq ($(ucpu),parisc64) + mycpu = hppa +endif ifeq ($(ucpu),s390x) mycpu = s390x endif ifeq ($(ucpu),sparc) mycpu = sparc endif +ifeq ($(ucpu),sparc64) + mycpu = sparc64 +endif ifeq ($(ucpu),sun) mycpu = sparc endif |