Skip to content

Commit f206fc4

Browse files
authored
change SPC_CONCURRENCT order
1 parent 1b2ee70 commit f206fc4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/SPC/util/GlobalEnvManager.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ public static function init(BuilderBase $builder): void
4040
self::putenv('SOURCE_PATH=' . SOURCE_PATH);
4141
self::putenv('DOWNLOAD_PATH=' . DOWNLOAD_PATH);
4242

43-
// Init system-specific env
44-
match (PHP_OS_FAMILY) {
45-
'Windows' => self::initWindowsEnv($builder),
46-
'Darwin' => self::initDarwinEnv($builder),
47-
'Linux' => self::initLinuxEnv($builder),
48-
'BSD' => 'TODO',
49-
default => logger()->warning('Unknown OS: ' . PHP_OS_FAMILY),
50-
};
51-
5243
// Init SPC env
5344
self::initIfNotExists('SPC_CONCURRENCY', match (PHP_OS_FAMILY) {
5445
'Windows' => (string) WindowsSystemUtil::getCpuCount(),
@@ -57,6 +48,15 @@ public static function init(BuilderBase $builder): void
5748
'BSD' => (string) BSDSystemUtil::getCpuCount(),
5849
default => '1',
5950
});
51+
52+
// Init system-specific env
53+
match (PHP_OS_FAMILY) {
54+
'Windows' => self::initWindowsEnv($builder),
55+
'Darwin' => self::initDarwinEnv($builder),
56+
'Linux' => self::initLinuxEnv($builder),
57+
'BSD' => 'TODO',
58+
default => logger()->warning('Unknown OS: ' . PHP_OS_FAMILY),
59+
};
6060
}
6161

6262
private static function initWindowsEnv(BuilderBase $builder): void

0 commit comments

Comments
 (0)