summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/moz-patch-stack/0082.patch
blob: 1d9ff301d6b1cd3986c7f7f46ee2a997f5b35c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Mike Hommey <mh+mozilla@glandium.org>
Date: Fri, 7 Jul 2023 00:58:00 +0000
Subject: Bug 1841577 - Don't set WEBRTC_ENABLE_AVX2 on platforms that don't
 have AVX2. r=mjf,webrtc-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D182695
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 e339ba25fe..e1273475b9 100644
--- a/webrtc.gni
+++ b/webrtc.gni
@@ -310,7 +310,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