diff --git a/ci/build-libmpv-macos.sh b/ci/build-libmpv-macos.sh index da8e4cd..fea0c9b 100644 --- a/ci/build-libmpv-macos.sh +++ b/ci/build-libmpv-macos.sh @@ -160,8 +160,11 @@ _lcms2_mark=lib/liblcms2.a _ffmpeg () { gitpin https://github.com/FFmpeg/FFmpeg.git ffmpeg "$FFMPEG_VER" builddir ffmpeg + # --arch is explicit: ffmpeg would otherwise auto-detect aarch64 from + # uname -m on the runner even for the cross-compiled x86_64 slice. args=( --prefix="$prefix_dir" --pkg-config=pkg-config --target-os=darwin + --arch="$ARCH" --enable-gpl $commonflags --cc="$CC" --cxx="$CXX" --disable-{doc,programs}