aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",