Skip to content

Commit

Permalink
Multi core utilization for build systems
Browse files Browse the repository at this point in the history
  • Loading branch information
hozuki committed Apr 26, 2020
1 parent 052f286 commit 017b599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/build-project-ubuntu.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Set-Location build/make
[Int32]$processorCount = [Environment]::ProcessorCount

& make
& make -j "$processorCount"

if (!$?) {
Write-Error "An error occured while trying to invoke ``make``"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-project-win.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Int32]$processorCount = [Environment]::ProcessorCount;
[Int32]$processorCount = [Environment]::ProcessorCount
& msbuild build\vc\cgss.sln /p:"Configuration=$env:CONFIGURATION" /m:"$processorCount"

if (!$?)
Expand Down

0 comments on commit 017b599

Please sign in to comment.