[New] `install`: add parallel build support for openbsd

Co-authored-by: Lukman <lukmaan.me@gmail.com>
Co-authored-by: Sladyn Nunes <sladynnunes98@gmail.com>
Lukman 2020-12-26 22:23:35 +05:30 committed by Jordan Harband
parent 52f67b3677
commit 1081ed161b
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 2 additions and 1 deletions

3
nvm.sh
View File

@ -1760,6 +1760,7 @@ nvm_get_os() {
Darwin\ *) NVM_OS=darwin ;; Darwin\ *) NVM_OS=darwin ;;
SunOS\ *) NVM_OS=sunos ;; SunOS\ *) NVM_OS=sunos ;;
FreeBSD\ *) NVM_OS=freebsd ;; FreeBSD\ *) NVM_OS=freebsd ;;
OpenBSD\ *) NVM_OS=openbsd ;;
AIX\ *) NVM_OS=aix ;; AIX\ *) NVM_OS=aix ;;
esac esac
nvm_echo "${NVM_OS-}" nvm_echo "${NVM_OS-}"
@ -2160,7 +2161,7 @@ nvm_get_make_jobs() {
"_linux") "_linux")
NVM_CPU_CORES="$(nvm_grep -c -E '^processor.+: [0-9]+' /proc/cpuinfo)" NVM_CPU_CORES="$(nvm_grep -c -E '^processor.+: [0-9]+' /proc/cpuinfo)"
;; ;;
"_freebsd" | "_darwin") "_freebsd" | "_darwin" | "_openbsd")
NVM_CPU_CORES="$(sysctl -n hw.ncpu)" NVM_CPU_CORES="$(sysctl -n hw.ncpu)"
;; ;;
"_sunos") "_sunos")