@@ -40,15 +40,6 @@ public static function init(BuilderBase $builder): void
40
40
self ::putenv ('SOURCE_PATH= ' . SOURCE_PATH );
41
41
self ::putenv ('DOWNLOAD_PATH= ' . DOWNLOAD_PATH );
42
42
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
-
52
43
// Init SPC env
53
44
self ::initIfNotExists ('SPC_CONCURRENCY ' , match (PHP_OS_FAMILY ) {
54
45
'Windows ' => (string ) WindowsSystemUtil::getCpuCount (),
@@ -57,6 +48,15 @@ public static function init(BuilderBase $builder): void
57
48
'BSD ' => (string ) BSDSystemUtil::getCpuCount (),
58
49
default => '1 ' ,
59
50
});
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
+ };
60
60
}
61
61
62
62
private static function initWindowsEnv (BuilderBase $ builder ): void
0 commit comments