From 6394df5fda5f15cdee566045e6c890b6283fd4d8 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 4 May 2026 02:27:33 -1000 Subject: [PATCH] Appveyor: Cleanup make command arguments for parallel builds --- appveyor.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index efe089af..1fea9071 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -50,8 +50,10 @@ build_script: $arch = arch if (Get-Command "gmake" -ErrorAction SilentlyContinue) { $make = (Get-Command "gmake").Path + $makeversion = gmake --version } else { $make = (Get-Command "make").Path + $makeversion = make --version } if ($platform -eq 'Linux') { $ncpus = nproc @@ -63,11 +65,13 @@ build_script: } } if ($ncpus -ne '') { - $parallel = '-j' + $ncpus + ' NJOBS=' + $ncpus - Write-Host "Building with $ncpus processors" + Write-Host $makeversion + $parallel = "-j$ncpus NJOBS=$ncpus" + Write-Host "Running $make and Building with $ncpus processors" + Write-Host "Make command: $make $parallel QUIET=1" } $commit_id_file = '.git-commit-id' - & $make QUIET=1 $parallel + Invoke-Expression "$make $parallel QUIET=1" } on_success: