Skip to content

Commit 2abbb75

Browse files
committed
phpstan doesn't like GNU_ARCH there
1 parent 3f92df0 commit 2abbb75

File tree

1 file changed

+1
-2
lines changed
  • src/SPC/builder/extension

1 file changed

+1
-2
lines changed

src/SPC/builder/extension/uv.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SPC\builder\extension;
66

77
use SPC\builder\Extension;
8-
use SPC\builder\linux\SystemUtil;
98
use SPC\store\FileSystem;
109
use SPC\util\CustomExt;
1110

@@ -21,7 +20,7 @@ public function validate(): void
2120

2221
public function patchBeforeSharedMake(): bool
2322
{
24-
if (PHP_OS_FAMILY !== 'Linux' || GNU_ARCH !== 'aarch64') {
23+
if (PHP_OS_FAMILY !== 'Linux' || arch2gnu(php_uname('m')) !== 'aarch64') {
2524
return false;
2625
}
2726
FileSystem::replaceFileRegex($this->source_dir . '/Makefile', '/^(LDFLAGS =.*)$/m', '$1 -luv -ldl -lrt -pthread');

0 commit comments

Comments
 (0)