Skip to content

Commit 5801d05

Browse files
committed
test musl (I have not tested this yet!)
1 parent 815ba75 commit 5801d05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/SPC/builder/linux/LinuxBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(array $options = [])
3030

3131
GlobalEnvManager::init();
3232

33-
if (getenv('SPC_LIBC') === 'musl' && !SystemUtil::isMuslDist() && !str_contains((string)getenv('CC'), 'zig')) {
33+
if (getenv('SPC_LIBC') === 'musl' && !SystemUtil::isMuslDist() && !str_contains((string) getenv('CC'), 'zig')) {
3434
$this->setOptionIfNotExist('library_path', "LIBRARY_PATH=\"/usr/local/musl/{$arch}-linux-musl/lib\"");
3535
$this->setOptionIfNotExist('ld_library_path', "LD_LIBRARY_PATH=\"/usr/local/musl/{$arch}-linux-musl/lib\"");
3636
$configure = getenv('SPC_CMD_PREFIX_PHP_CONFIGURE');

src/globals/test-extensions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
$zig = true;
3636
// temporary!
3737
if ($zig) {
38-
putenv('SPC_LIBC=glibc');
38+
putenv('SPC_LIBC=musl');
3939
putenv('SPC_LIBC_VERSION=2.17');
4040
putenv('CC=zig-cc');
4141
putenv('CXX=zig-c++');
@@ -63,7 +63,7 @@
6363

6464
// If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`).
6565
$shared_extensions = match (PHP_OS_FAMILY) {
66-
'Linux' => 'event,uv,intl,gettext',
66+
'Linux' => '',
6767
'Darwin' => '',
6868
'Windows' => '',
6969
};

0 commit comments

Comments
 (0)