From 331354a83923a12c94409494b4bacf208273d466 Mon Sep 17 00:00:00 2001 From: Frankie Dintino Date: Tue, 8 Apr 2025 09:32:22 -0400 Subject: [PATCH] only disable CMAKE_INTERPROCEDURAL_OPTIMIZATION on macOS --- .github/workflows/wheels-dependencies.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/wheels-dependencies.sh b/.github/workflows/wheels-dependencies.sh index 32572e4e6..6feda6b0d 100755 --- a/.github/workflows/wheels-dependencies.sh +++ b/.github/workflows/wheels-dependencies.sh @@ -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)