From 938af25f4676f2cd88693527a62357a43379c0bc Mon Sep 17 00:00:00 2001 From: Seth Jackson Date: Sun, 22 Feb 2026 03:40:42 -0500 Subject: [PATCH] Set __NumProc on OpenBSD --- eng/native/build-commons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/native/build-commons.sh b/eng/native/build-commons.sh index 404a27e612ecc3..c0631ecda1308e 100755 --- a/eng/native/build-commons.sh +++ b/eng/native/build-commons.sh @@ -300,7 +300,7 @@ __TargetRid='' # Get the number of processors available to the scheduler platform="$(uname -s | tr '[:upper:]' '[:lower:]')" -if [[ "$platform" == "freebsd" ]]; then +if [[ "$platform" == "freebsd" || "$platform" == "openbsd" ]]; then __NumProc="$(($(sysctl -n hw.ncpu)+1))" elif [[ "$platform" == "netbsd" || "$platform" == "sunos" ]]; then __NumProc="$(($(getconf NPROCESSORS_ONLN)+1))"