diff options
author | PHO <pho@cielonegro.org> | 2024-05-17 06:22:49 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 23:22:49 +0200 |
commit | 0ba932132e56d30de7af268f3268b3141ad22bc8 (patch) | |
tree | b12391230b3fb18b30327573653d3b7f9f96dfb8 /tools | |
parent | 2c8551556e5b51b7a7e487b1043b92d4ad34dbf0 (diff) | |
download | Nim-0ba932132e56d30de7af268f3268b3141ad22bc8.tar.gz |
Support NetBSD/aarch64 (#23616)
I could trivially port Nim to NetBSD/aarch64 because it already supported NetBSD and aarch64. I only needed to generate `c_code` for this combination.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/niminst/buildsh.nimf | 1 | ||||
-rw-r--r-- | tools/niminst/makefile.nimf | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/niminst/buildsh.nimf b/tools/niminst/buildsh.nimf index 6b99c49ee..063a02779 100644 --- a/tools/niminst/buildsh.nimf +++ b/tools/niminst/buildsh.nimf @@ -122,6 +122,7 @@ case $uos in *netbsd* ) myos="netbsd" LINK_FLAGS="$LINK_FLAGS -lm" + ucpu=`uname -p` ;; *darwin* ) myos="macosx" diff --git a/tools/niminst/makefile.nimf b/tools/niminst/makefile.nimf index b392ab472..002bc0592 100644 --- a/tools/niminst/makefile.nimf +++ b/tools/niminst/makefile.nimf @@ -45,6 +45,7 @@ endif ifeq ($(uos),netbsd) myos = netbsd LDFLAGS += -lm + ucpu = $(shell sh -c 'uname -p') endif ifeq ($(uos),darwin) myos = macosx |