mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
revert turning off sse for libwebp, need to check why debian fails building
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user