Skip to content

Commit 17a25b4

Browse files
committed
attempt fix for aarch64 #2
1 parent 781260f commit 17a25b4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/SPC/builder/unix/library/postgresql.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ trait postgresql
1414
public function patchBeforeBuild(): bool
1515
{
1616
if (SPCTarget::getLibcVersion() === '2.17' && GNU_ARCH === 'aarch64') {
17+
FileSystem::replaceFileStr(
18+
$this->source_dir . '/src/port/pg_popcount_aarch64.c',
19+
'value & HWCAP_SVE',
20+
'value & 0',
21+
);
1722
FileSystem::replaceFileStr(
1823
$this->source_dir . '/src/port/pg_crc32c_armv8_choose.c',
1924
'#if defined(__linux__) && !defined(__aarch64__) && !defined(HWCAP2_CRC32)',

0 commit comments

Comments
 (0)