mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
attempt fix for aarch64 #2
This commit is contained in:
parent
781260f3fc
commit
17a25b44e2
@ -14,6 +14,11 @@ trait postgresql
|
||||
public function patchBeforeBuild(): bool
|
||||
{
|
||||
if (SPCTarget::getLibcVersion() === '2.17' && GNU_ARCH === 'aarch64') {
|
||||
FileSystem::replaceFileStr(
|
||||
$this->source_dir . '/src/port/pg_popcount_aarch64.c',
|
||||
'value & HWCAP_SVE',
|
||||
'value & 0',
|
||||
);
|
||||
FileSystem::replaceFileStr(
|
||||
$this->source_dir . '/src/port/pg_crc32c_armv8_choose.c',
|
||||
'#if defined(__linux__) && !defined(__aarch64__) && !defined(HWCAP2_CRC32)',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user