Skip to content

Commit c094cfb

Browse files
committed
Default activeProcessorCount to 1, not 0.
After a rather tedious debugging session trying to figure out why swiftpm-bootstrap appeared to be deadlocked, this turned out to be the culprit. Perhaps this should be #error instead, but for now, set a sensible default.
1 parent 209865e commit c094cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ extension _ProcessInfo {
481481
GetSystemInfo(&sysInfo)
482482
return sysInfo.dwActiveProcessorMask.nonzeroBitCount
483483
#else
484-
return 0
484+
return 1
485485
#endif
486486
}
487487

0 commit comments

Comments
 (0)