File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,12 @@ function build {
286286 build_tiff
287287 fi
288288
289- build_libavif
289+ if [[ -z " $IOS_SDK " ]] || [[ " $PLAT " == " arm64" ]]; then
290+ # Building libavif for x86_64 iOS simulator isn't currently possible
291+ # because it requires the use of nasm, which doesn't create
292+ # iOS-compatible binaries.
293+ build_libavif
294+ fi
290295 build_libpng
291296 build_lcms2
292297 build_openjpeg
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ def test_wheel_modules() -> None:
2727 # tkinter is not available on iOS
2828 expected_modules .remove ("tkinter" )
2929
30+ # libavif is not available on x86_64 iOS simulators
31+ if platform .machine () == "x86_64" :
32+ expected_modules .remove ("avif" )
33+
3034 assert set (features .get_supported_modules ()) == expected_modules
3135
3236
You can’t perform that action at this time.
0 commit comments