Skip to content

Commit

Permalink
Only build SVT-AV1 for apple silicon if macOS >= 14
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Jul 5, 2024
1 parent aa3f798 commit 1a27c2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wheelbuild/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,13 @@ function build_libavif {
fi
which cmake
cmake --version
if [ "$MB_ML_VER" != "1" ]; then
if [ -n "$IS_MACOS" ] && [ "$PLAT" == "arm64" ]; then
# SVT-AV1 NEON intrinsics require macOS 14
local macos_ver==$(sw_vers --productVersion | sed 's/\.[0-9]*//')
if [ "$macos_ver" -gt "13" ]; then
LIBAVIF_CMAKE_FLAGS+=(-DAVIF_CODEC_SVT=LOCAL)
fi
elif [ "$MB_ML_VER" != "1" ]; then
LIBAVIF_CMAKE_FLAGS+=(-DAVIF_CODEC_SVT=LOCAL)
fi

Expand Down

0 comments on commit 1a27c2c

Please sign in to comment.