Source code
Revision control
Copy as Markdown
Other Tools
From: Mike Hommey <mh+mozilla@glandium.org>
Date: Fri, 7 Jul 2023 00:58:00 +0000
have AVX2. r=mjf,webrtc-reviewers
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/46fb51c90709be64c35946a8cf69195121441024
---
webrtc.gni | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webrtc.gni b/webrtc.gni
index f55b88a061..167b4d7de0 100644
--- a/webrtc.gni
+++ b/webrtc.gni
@@ -317,7 +317,7 @@ declare_args() {
# Set this to true to enable the avx2 support in webrtc.
# TODO: Make sure that AVX2 works also for non-clang compilers.
- if (is_clang == true) {
+ if (is_clang == true && (target_cpu == "x86" || target_cpu == "x64")) {
rtc_enable_avx2 = true
} else {
rtc_enable_avx2 = false