From 6106bdfc7b9cf058e1b3c6e70f41ac032ab50140 Mon Sep 17 00:00:00 2001 From: Deal Date: Sat, 3 Feb 2024 10:16:37 +0800 Subject: [PATCH] Update build.ps1 --- 1k/build.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/1k/build.ps1 b/1k/build.ps1 index 748d497a..585f1a11 100644 --- a/1k/build.ps1 +++ b/1k/build.ps1 @@ -1659,9 +1659,8 @@ if (!$setupOnly) { # step4. build # apply additional build options $BUILD_ALL_OPTIONS += "--parallel" - if ($Global:is_linux) { - $BUILD_ALL_OPTIONS += "$(nproc)" - } + $BUILD_ALL_OPTIONS += "$([Environment]::ProcessorCount)" + if (($cmake_generator -eq 'Xcode') -and ($BUILD_ALL_OPTIONS.IndexOf('--verbose') -eq -1)) { $BUILD_ALL_OPTIONS += '--', '-quiet' }