Files
Michael Froman f70f3b0dfc Bug 2058693 - Vendor libwebrtc from 04964db74d
Upstream commit: https://webrtc.googlesource.com/src/+/04964db74ddc63236c30b7e3e38e78f43cdd3536
    build: consolidate the iOS XCTest main() into rtc_test()

    Bug: webrtc:467294026
    Change-Id: Ic1b515bc0ee7bd64d0a16b841dc4ec74025cdb34
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/455740
    Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
    Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
    Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#48192}
2026-08-14 22:33:32 +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 9afb305dee..99f8646a10 100644
--- a/webrtc.gni
+++ b/webrtc.gni
@@ -295,7 +295,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