File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
src/SPC/builder/unix/library Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 55namespace SPC \builder \unix \library ;
66
77use SPC \util \executor \UnixCMakeExecutor ;
8+ use SPC \util \SPCTarget ;
89
910trait libwebp
1011{
1112 protected function build (): void
1213 {
1314 UnixCMakeExecutor::create ($ this )
14- ->appendEnv ([
15- 'CFLAGS ' => GNU_ARCH === 'x86_64 ' ? '-mavx2 ' : '' ,
16- ])
1715 ->addConfigureArgs (
18- '-DWEBP_BUILD_EXTRAS=OFF '
16+ '-DWEBP_BUILD_EXTRAS=OFF ' ,
17+ '-DWEBP_BUILD_ANIM_UTILS=OFF ' ,
18+ '-DWEBP_BUILD_CWEBP=OFF ' ,
19+ '-DWEBP_BUILD_DWEBP=OFF ' ,
20+ '-DWEBP_BUILD_GIF2WEBP=OFF ' ,
21+ '-DWEBP_BUILD_IMG2WEBP=OFF ' ,
22+ '-DWEBP_BUILD_VWEBP=OFF ' ,
23+ '-DWEBP_BUILD_WEBPINFO=OFF ' ,
24+ '-DWEBP_BUILD_WEBPMUX=OFF ' ,
25+ '-DWEBP_BUILD_FUZZTEST=OFF ' ,
26+ SPCTarget::getLibcVersion () === '2.31 ' && GNU_ARCH === 'x86_64 ' ? '-DWEBP_ENABLE_SIMD=OFF ' : '' // fix an edge bug for debian 11 with gcc 10
1927 )
2028 ->build ();
2129 // patch pkgconfig
You can’t perform that action at this time.
0 commit comments