revert turning off sse for libwebp, need to check why debian fails building

This commit is contained in:
henderkes
2025-12-01 19:12:43 +01:00
parent c051a48d56
commit 150d866c15
2 changed files with 4 additions and 5 deletions

View File

@@ -10,12 +10,9 @@ trait libwebp
{
protected function build(): void
{
$cflags = getenv('SPC_DEFAULT_C_FLAGS') ?: getenv('CFLAGS') ?: '';
$has_avx2 = str_contains($cflags, '-mavx2') || str_contains($cflags, '-march=x86-64-v2') || str_contains($cflags, '-march=x86-64-v3');
UnixCMakeExecutor::create($this)
->addConfigureArgs(
'-DWEBP_BUILD_EXTRAS=OFF',
'-DWEBP_ENABLE_SIMD=' . ($has_avx2 ? 'ON' : 'OFF'),
'-DWEBP_BUILD_EXTRAS=OFF'
)
->build();
// patch pkgconfig