[New] `install`: add parallel build support for openbsd
Co-authored-by: Lukman <lukmaan.me@gmail.com> Co-authored-by: Sladyn Nunes <sladynnunes98@gmail.com>
parent
52f67b3677
commit
1081ed161b
3
nvm.sh
3
nvm.sh
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue