From 9dffc5604d58edb1860d31e53976ab4f226f8334 Mon Sep 17 00:00:00 2001 From: Frankie Dintino Date: Mon, 15 Jul 2024 01:51:25 -0400 Subject: [PATCH] add target march and mcpu flags --- wheelbuild/config.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wheelbuild/config.sh b/wheelbuild/config.sh index b3873be..6808e15 100644 --- a/wheelbuild/config.sh +++ b/wheelbuild/config.sh @@ -297,8 +297,9 @@ EOF -DAVIF_CODEC_DAV1D=LOCAL \ -DAVIF_BUILD_APPS=ON \ -DENABLE_NASM=ON \ - '-DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG -g' \ - '-DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG -g' \ + '-DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG -g -target arm64-apple-macos11 -march=armv8-a+crc+crypto -mcpu=generic ' \ + '-DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG -g -target arm64-apple-macos11 -march=armv8-a+crc+crypto -mcpu=generic ' \ + '-DCMAKE_EXE_LINKER_FLAGS=-march=armv8-a+crc+crypto -target arm64-apple-macos11' \ "${LIBAVIF_CMAKE_FLAGS[@]}" \ && ninja -v install \ && cp avifenc ../../wheelhouse)