Skip to content

Commit 735ba7c

Browse files
committed
Fixes #115. Unfortunately, I don't have an M1, so i can't test
1 parent 00e963c commit 735ba7c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build-ffmpeg

+11
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,20 @@ if command_exists "python3"; then
429429
if build "dav1d" "0.9.2"; then
430430
download "https://code.videolan.org/videolan/dav1d/-/archive/0.9.2/dav1d-0.9.2.tar.gz"
431431
make_dir build
432+
433+
CFLAGSBACKUP=$CFLAGS
434+
if $MACOS_M1; then
435+
export CFLAGS="-arch arm64"
436+
fi
437+
432438
execute meson build --prefix="${WORKSPACE}" --buildtype=release --default-library=static --libdir="${WORKSPACE}"/lib
433439
execute ninja -C build
434440
execute ninja -C build install
441+
442+
if $MACOS_M1; then
443+
export CFLAGS=$CFLAGSBACKUP
444+
fi
445+
435446
build_done "dav1d" "0.9.2"
436447
fi
437448
CONFIGURE_OPTIONS+=("--enable-libdav1d")

0 commit comments

Comments
 (0)