We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c40ea5 commit 331354aCopy full SHA for 331354a
1 file changed
.github/workflows/wheels-dependencies.sh
@@ -123,10 +123,14 @@ function build_libavif {
123
fi
124
125
local build_type=MinSizeRel
126
+ local lto=ON
127
128
if [[ "$MB_ML_VER" == 2014 ]]; then
129
build_type=Release
130
131
+ if [ -n "$IS_MACOS" ]; then
132
+ lto=OFF
133
+ fi
134
135
local out_dir=$(fetch_unpack https://github.com/AOMediaCodec/libavif/archive/refs/tags/v$LIBAVIF_VERSION.tar.gz libavif-$LIBAVIF_VERSION.tar.gz)
136
# CONFIG_AV1_DECODER=0 is a flag for libaom (included as a subproject of
@@ -143,6 +147,7 @@ function build_libavif {
143
147
-DCONFIG_AV1_DECODER=0 \
144
148
-DAVIF_CODEC_AOM_DECODE=OFF \
145
149
-DAVIF_CODEC_DAV1D=LOCAL \
150
+ -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=$lto \
146
151
-DCMAKE_BUILD_TYPE=$build_type \
152
. \
153
&& make install)
0 commit comments