Skip to content

Commit a159c52

Browse files
author
James Brundage
committed
feat: Export-PipeScript running serially when compiling a single file ( Fixes #830 )
1 parent 22b5394 commit a159c52

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Commands/PipeScript/Export-PipeScript.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ function Export-Pipescript {
258258
[long]$TotalInputFileLength = 0
259259
[long]$TotalOutputFileLength = 0
260260

261+
# If we're only building one file, there's no point in parallelization.
262+
if ($filesToBuild.Length -le 1) { $Serial = $true }
263+
261264
if (-not $startThreadJob) { continue }
262265
$buildThreadJobs = [Ordered]@{}
263266
$pendingBatch = @()

0 commit comments

Comments
 (0)