Skip to content

Commit cd4c416

Browse files
committed
Disable libavif on x86_64 simulators.
1 parent fe1ca68 commit cd4c416

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/wheels-dependencies.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

checks/check_wheel.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)