mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 15:04:59 +00:00
Fix CPU detection for i386 (#19577)
* Fix CPU detection for i386
Commit 787def271b breaks CPU detection for i386 on OpenBSD and probably on other platforms.
[ isOpenIndiana -eq "yes" ] always returns 0, so mycpu is always set to "amd64".
* Update buildsh.nimf
Fix accidental bashism
This commit is contained in:
@@ -164,7 +164,7 @@ esac
|
||||
|
||||
case $ucpu in
|
||||
*i386* | *i486* | *i586* | *i686* | *bepc* | *i86pc* )
|
||||
if [ isOpenIndiana -eq "yes" ] ; then
|
||||
if [ "$isOpenIndiana" = "yes" ] ; then
|
||||
mycpu="amd64"
|
||||
else
|
||||
mycpu="i386"
|
||||
|
||||
Reference in New Issue
Block a user