Skip to content

Commit 9fdfef5

Browse files
authored
macOS don't need to disable avx2 explicitly (#1007)
1 parent 18c5ccf commit 9fdfef5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/SPC/ConsoleApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535
final class ConsoleApplication extends Application
3636
{
37-
public const string VERSION = '2.7.10';
37+
public const string VERSION = '2.7.11';
3838

3939
public function __construct()
4040
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected function build(): void
1313
$code = 'int main() { return _mm256_cvtsi256_si32(_mm256_setzero_si256()); }';
1414
$cc = getenv('CC') ?: 'gcc';
1515
[$ret] = shell()->execWithResult("echo '{$code}' | {$cc} -x c -mavx2 -o /dev/null - 2>&1");
16-
$disableAvx2 = $ret !== 0 && GNU_ARCH === 'x86_64';
16+
$disableAvx2 = $ret !== 0 && GNU_ARCH === 'x86_64' && PHP_OS_FAMILY === 'Linux';
1717

1818
UnixCMakeExecutor::create($this)
1919
->addConfigureArgs(

src/globals/test-extensions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323

2424
// test os (macos-15-intel, macos-15, ubuntu-latest, windows-latest are available)
2525
$test_os = [
26-
// 'macos-15-intel', // bin/spc for x86_64
26+
'macos-15-intel', // bin/spc for x86_64
2727
// 'macos-15', // bin/spc for arm64
2828
// 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
29-
'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
30-
'ubuntu-24.04', // bin/spc for x86_64
31-
'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
32-
'ubuntu-24.04-arm', // bin/spc for arm64
29+
// 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
30+
// 'ubuntu-24.04', // bin/spc for x86_64
31+
// 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
32+
// 'ubuntu-24.04-arm', // bin/spc for arm64
3333
// 'windows-2022', // .\bin\spc.ps1
3434
// 'windows-2025',
3535
];

0 commit comments

Comments
 (0)