diff options
author | antonl05 <88133270+antonl05@users.noreply.github.com> | 2021-10-09 14:17:07 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-09 10:47:07 +0200 |
commit | 787def271b1cabc6f898caa42f892125de9fa908 (patch) | |
tree | 76592b6879354d6cb3c477361a682b8ad634cdfd /tools/niminst | |
parent | 08107c2192e6aebb386df2711f2935731ee599fd (diff) | |
download | Nim-787def271b1cabc6f898caa42f892125de9fa908.tar.gz |
add OpenIndiana to list (#18972)
* add OpenIndiana support * point sunos to solaris
Diffstat (limited to 'tools/niminst')
-rw-r--r-- | tools/niminst/buildsh.nimf | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/niminst/buildsh.nimf b/tools/niminst/buildsh.nimf index 9850abd89..5f68a6a17 100644 --- a/tools/niminst/buildsh.nimf +++ b/tools/niminst/buildsh.nimf @@ -139,6 +139,11 @@ case $uos in myos="solaris" LINK_FLAGS="$LINK_FLAGS -ldl -lm -lsocket -lnsl" ;; + *SunOS* ) + myos="solaris" + LINK_FLAGS="$LINK_FLAGS -ldl -lm -lsocket -lnsl" + isOpenIndiana="yes" + ;; *haiku* ) myos="haiku" LINK_FLAGS="$LINK_FLAGS -lroot -lnetwork" @@ -159,7 +164,12 @@ esac case $ucpu in *i386* | *i486* | *i586* | *i686* | *bepc* | *i86pc* ) - mycpu="i386" ;; + if [ isOpenIndiana -eq "yes" ] ; then + mycpu="amd64" + else + mycpu="i386" + fi + ;; *amd*64* | *x86-64* | *x86_64* ) mycpu="amd64" ;; *sparc*|*sun* ) |