aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-05-24 19:55:46 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-05-24 19:55:46 +0000
commit3e3a01fd5b3a56ab70f56be095dcda7f1bddf067 (patch)
treefd39efcfe7a471adeede2da9702c52aa46a9c833
parent0d690b9249f8c25818277a9ec52d90f96481fd24 (diff)
parent311c8d093f24f683bee5d706236c42a3864740df (diff)
downloadlibyuv-emu-dev.tar.gz
Merge "Fix Apple sillicon compiler settings" into emu-devemu-dev
-rw-r--r--BUILD.bazel15
1 files changed, 10 insertions, 5 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index a52fa6d9..b4bf4be6 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -78,10 +78,10 @@ selects.config_setting_group(
],
)
-NEON_COPTS = select({
- ":aarch64": [
+OS_FLAGS = select({
+ ":osx_apple": [
"-DLIBYUV_NEON",
- "-march=armv8-a+dotprod+i8mm",
+ "-march=armv9-a+sve2",
],
"//conditions:default": [],
})
@@ -91,7 +91,7 @@ PLATFORM_COPTS = [
"-DHAVE_JPEG",
]
-ALL_COPTS = NEON_COPTS + PLATFORM_COPTS
+ALL_COPTS = OS_FLAGS + PLATFORM_COPTS
cc_library(
name = "libyuv_neon_impl",
@@ -146,7 +146,12 @@ cc_library(
"source/scale_uv.cc",
"source/scale_win.cc",
"source/video_common.cc",
- ],
+ ] + select(
+ {
+ ":osx_apple": ["source/row_sve.cc"],
+ "//conditions:default": [],
+ },
+ ),
hdrs = [
"include/libyuv.h",
"include/libyuv/basic_types.h",