mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-23 10:41:58 +03:00
only disable CMAKE_INTERPROCEDURAL_OPTIMIZATION on macOS
This commit is contained in:
parent
1c40ea5a5f
commit
331354a839
5
.github/workflows/wheels-dependencies.sh
vendored
5
.github/workflows/wheels-dependencies.sh
vendored
|
@ -123,10 +123,14 @@ function build_libavif {
|
|||
fi
|
||||
|
||||
local build_type=MinSizeRel
|
||||
local lto=ON
|
||||
|
||||
if [[ "$MB_ML_VER" == 2014 ]]; then
|
||||
build_type=Release
|
||||
fi
|
||||
if [ -n "$IS_MACOS" ]; then
|
||||
lto=OFF
|
||||
fi
|
||||
|
||||
local out_dir=$(fetch_unpack https://github.com/AOMediaCodec/libavif/archive/refs/tags/v$LIBAVIF_VERSION.tar.gz libavif-$LIBAVIF_VERSION.tar.gz)
|
||||
# CONFIG_AV1_DECODER=0 is a flag for libaom (included as a subproject of
|
||||
|
@ -143,6 +147,7 @@ function build_libavif {
|
|||
-DCONFIG_AV1_DECODER=0 \
|
||||
-DAVIF_CODEC_AOM_DECODE=OFF \
|
||||
-DAVIF_CODEC_DAV1D=LOCAL \
|
||||
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=$lto \
|
||||
-DCMAKE_BUILD_TYPE=$build_type \
|
||||
. \
|
||||
&& make install)
|
||||
|
|
Loading…
Reference in New Issue
Block a user