Skip to content

Commit 5370af4

Browse files
committed
don't zig the tests yet
1 parent df0d5fd commit 5370af4

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/globals/test-extensions.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@
3232
// 'windows-latest', // .\bin\spc.ps1
3333
];
3434

35-
$zig = true;
36-
// temporary!
37-
if ($zig) {
38-
putenv('SPC_LIBC=glibc');
39-
putenv('SPC_LIBC_VERSION=2.28');
40-
putenv('CC=zig-cc');
41-
putenv('CXX=zig-c++');
42-
putenv('AR=ar');
43-
putenv('LD=ld');
44-
exec('ulimit -n 2048');
45-
}
46-
4735
// whether enable thread safe
4836
$zts = true;
4937

@@ -170,7 +158,7 @@ function quote2(string $param): string
170158
break;
171159
case 'ubuntu-24.04':
172160
case 'ubuntu-24.04-arm':
173-
if (getenv('SPC_LIBC') === 'glibc') {
161+
if (str_contains((string) getenv('SPC_TARGET'), '-gnu')) {
174162
$shared_cmd = ' --build-shared=' . quote2($shared_extensions) . ' ';
175163
}
176164
break;

0 commit comments

Comments
 (0)