mirror of
https://github.com/kirbylink/mpv-natives
synced 2026-11-23 10:32:26 +01:00
build: pass explicit --arch to ffmpeg for the x86_64 cross-slice
ffmpeg auto-detects the CPU architecture from uname -m, which is aarch64 on the macOS runner, and then compiles Arm assembly for the x86_64 slice. Pass --arch explicitly so the cross build uses the correct SIMD code paths.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user