Files
sousa-gecko/third_party/libwebrtc/moz-patch-stack/s0069.patch
T
Nico Grunbaum 2e3e260bd1 Bug 2047265 - Vendor libwebrtc from b2887131ee
Upstream commit: https://webrtc.googlesource.com/src/+/b2887131ee7872b53724e7b9e7d67aab7b18d9b5
    Adds rust version of webrtc::RateTracker

    This includes some updates to how units FFI is exposed and removes the
    previous bridge tests as now we have real tests for cxx bridges.

    Bug: webrtc:416446214
    Change-Id: I027e68b4521e14d5a1687dd0f0d03ed16a6a6964
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/470180
    Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
    Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
    Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
    Reviewed-by: Victor Boivie <boivie@webrtc.org>
    Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#47663}
2026-06-19 13:47:49 +00:00

25 lines
884 B
Diff

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 baa6fef0ef..428702516c 100644
--- a/webrtc.gni
+++ b/webrtc.gni
@@ -290,7 +290,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