From 1081ed161b9d62b975c6253ebc146e3de0dc8c66 Mon Sep 17 00:00:00 2001 From: Lukman Date: Sat, 26 Dec 2020 22:23:35 +0530 Subject: [PATCH] [New] `install`: add parallel build support for openbsd Co-authored-by: Lukman Co-authored-by: Sladyn Nunes --- nvm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index b5232c6..c2eb1d0 100644 --- a/nvm.sh +++ b/nvm.sh @@ -1760,6 +1760,7 @@ nvm_get_os() { Darwin\ *) NVM_OS=darwin ;; SunOS\ *) NVM_OS=sunos ;; FreeBSD\ *) NVM_OS=freebsd ;; + OpenBSD\ *) NVM_OS=openbsd ;; AIX\ *) NVM_OS=aix ;; esac nvm_echo "${NVM_OS-}" @@ -2160,7 +2161,7 @@ nvm_get_make_jobs() { "_linux") NVM_CPU_CORES="$(nvm_grep -c -E '^processor.+: [0-9]+' /proc/cpuinfo)" ;; - "_freebsd" | "_darwin") + "_freebsd" | "_darwin" | "_openbsd") NVM_CPU_CORES="$(sysctl -n hw.ncpu)" ;; "_sunos")