diff --git a/BUILD.gn b/BUILD.gn index 691a033ea..32cc013f4 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -232,7 +232,9 @@ if (libyuv_use_neon) { configs += [ "//build/config/compiler:optimize_max" ] } - if (current_cpu != "arm64") { + if (current_cpu == "arm64") { + cflags = [ "-march=armv8-a+dotprod+i8mm" ] + } else { configs -= [ "//build/config/compiler:compiler_arm_fpu" ] cflags = [ "-mfpu=neon" ] }