From a4f653b38993a0f3aee9821b893266afd96c8977 Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Wed, 2 Apr 2025 16:12:19 -0700 Subject: [PATCH] Fix CMakeLists.txt for compatibility with gcc 10 Based on the libavif pull request https://github.com/AOMediaCodec/libavif/pull/2660 by Frankie Dintino . Bug: 399856238 Change-Id: I9b21a0cf1fd26b71d86090f41841eefa4d6bb194 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6405834 Reviewed-by: George Steed Reviewed-by: Frank Barchard Commit-Queue: Wan-Teh Chang --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bcb97926f..45089c120 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,13 +112,13 @@ if(NOT MSVC) ${ly_src_dir}/rotate_neon64.cc ${ly_src_dir}/row_neon64.cc ${ly_src_dir}/scale_neon64.cc) - target_compile_options(${ly_lib_name}_neon64 PRIVATE -march=armv8-a+dotprod+i8mm) + target_compile_options(${ly_lib_name}_neon64 PRIVATE -march=armv8.2-a+dotprod+i8mm) list(APPEND ly_lib_parts $) # Enable AArch64 SVE kernels. add_library(${ly_lib_name}_sve OBJECT ${ly_src_dir}/row_sve.cc) - target_compile_options(${ly_lib_name}_sve PRIVATE -march=armv9-a+sve2) + target_compile_options(${ly_lib_name}_sve PRIVATE -march=armv8.5-a+i8mm+sve2) list(APPEND ly_lib_parts $) set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})