File: 0039.patch

package info (click to toggle)
thunderbird 1%3A143.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,703,968 kB
  • sloc: cpp: 7,770,492; javascript: 5,943,842; ansic: 3,918,754; python: 1,418,263; xml: 653,354; asm: 474,045; java: 183,079; sh: 111,238; makefile: 20,410; perl: 14,359; objc: 13,059; yacc: 4,583; pascal: 3,405; lex: 1,720; ruby: 999; exp: 762; sql: 715; awk: 580; php: 436; lisp: 430; sed: 69; csh: 10
file content (297 lines) | stat: -rw-r--r-- 10,773 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
From: Nico Grunbaum <na-g@nostrum.com>
Date: Wed, 14 Jul 2021 22:26:00 +0000
Subject: Bug 1654112 - deconflate the target and host architectures in
 libwebrtc build files; r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D119707
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/58f47eacaf10d12e21dff7362743b6f4cdd1696b
---
 BUILD.gn                                         |  6 +++---
 common_audio/BUILD.gn                            | 16 ++++++++--------
 common_audio/third_party/ooura/BUILD.gn          |  6 +++---
 common_audio/third_party/spl_sqrt_floor/BUILD.gn |  4 ++--
 modules/audio_processing/aec3/BUILD.gn           |  6 +++---
 modules/audio_processing/aecm/BUILD.gn           |  4 ++--
 modules/audio_processing/agc/BUILD.gn            |  2 +-
 modules/audio_processing/agc2/rnn_vad/BUILD.gn   |  2 +-
 modules/audio_processing/ns/BUILD.gn             |  2 +-
 modules/desktop_capture/BUILD.gn                 |  2 +-
 webrtc.gni                                       |  4 ++--
 11 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/BUILD.gn b/BUILD.gn
index c1e86466a0..5c87acc7fd 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -444,12 +444,12 @@ config("common_config") {
     }
   }
 
-  if (current_cpu == "arm64") {
+  if (target_cpu == "arm64") {
     defines += [ "WEBRTC_ARCH_ARM64" ]
     defines += [ "WEBRTC_HAS_NEON" ]
   }
 
-  if (current_cpu == "arm") {
+  if (target_cpu == "arm") {
     defines += [ "WEBRTC_ARCH_ARM" ]
     if (arm_version >= 7) {
       defines += [ "WEBRTC_ARCH_ARM_V7" ]
@@ -459,7 +459,7 @@ config("common_config") {
     }
   }
 
-  if (current_cpu == "mipsel") {
+  if (target_cpu == "mipsel") {
     defines += [ "MIPS32_LE" ]
     if (mips_float_abi == "hard") {
       defines += [ "MIPS_FPU_LE" ]
diff --git a/common_audio/BUILD.gn b/common_audio/BUILD.gn
index 8135f5fca0..c909b8458d 100644
--- a/common_audio/BUILD.gn
+++ b/common_audio/BUILD.gn
@@ -66,7 +66,7 @@ rtc_library("common_audio") {
     deps += [ ":common_audio_neon" ]
   }
 
-  if (current_cpu == "x86" || current_cpu == "x64") {
+  if (target_cpu == "x86" || target_cpu == "x64") {
     deps += [ ":common_audio_sse2" ]
     deps += [ ":common_audio_avx2" ]
   }
@@ -88,7 +88,7 @@ rtc_source_set("mock_common_audio") {
 rtc_source_set("common_audio_c_arm_asm") {
   sources = []
   deps = []
-  if (current_cpu == "arm") {
+  if (target_cpu == "arm") {
     sources += [ "signal_processing/complex_bit_reverse_arm.S" ]
 
     if (arm_version >= 7) {
@@ -152,7 +152,7 @@ rtc_library("common_audio_c") {
     "vad/webrtc_vad.c",
   ]
 
-  if (current_cpu == "mipsel") {
+  if (target_cpu == "mipsel") {
     sources += [
       "signal_processing/complex_bit_reverse_mips.c",
       "signal_processing/complex_fft_mips.c",
@@ -170,7 +170,7 @@ rtc_library("common_audio_c") {
     sources += [ "signal_processing/complex_fft.c" ]
   }
 
-  if (current_cpu != "arm" && current_cpu != "mipsel") {
+  if (target_cpu != "arm" && target_cpu != "mipsel") {
     sources += [
       "signal_processing/complex_bit_reverse.c",
       "signal_processing/filter_ar_fast_q12.c",
@@ -232,7 +232,7 @@ rtc_library("fir_filter_factory") {
     "../rtc_base/system:arch",
     "../system_wrappers",
   ]
-  if (current_cpu == "x86" || current_cpu == "x64") {
+  if (target_cpu == "x86" || target_cpu == "x64") {
     deps += [ ":common_audio_sse2" ]
     deps += [ ":common_audio_avx2" ]
   }
@@ -241,7 +241,7 @@ rtc_library("fir_filter_factory") {
   }
 }
 
-if (current_cpu == "x86" || current_cpu == "x64") {
+if (target_cpu == "x86" || target_cpu == "x64") {
   rtc_library("common_audio_sse2") {
     sources = [
       "fir_filter_sse.cc",
@@ -290,7 +290,7 @@ if (rtc_build_with_neon) {
       "resampler/sinc_resampler_neon.cc",
     ]
 
-    if (current_cpu != "arm64") {
+    if (target_cpu != "arm64") {
       # Enable compilation for the NEON instruction set.
       suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
       cflags = [ "-mfpu=neon" ]
@@ -313,7 +313,7 @@ if (rtc_build_with_neon) {
       "signal_processing/min_max_operations_neon.c",
     ]
 
-    if (current_cpu != "arm64") {
+    if (target_cpu != "arm64") {
       # Enable compilation for the NEON instruction set.
       suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
       cflags = [ "-mfpu=neon" ]
diff --git a/common_audio/third_party/ooura/BUILD.gn b/common_audio/third_party/ooura/BUILD.gn
index 0cdf98e591..a0ddf777db 100644
--- a/common_audio/third_party/ooura/BUILD.gn
+++ b/common_audio/third_party/ooura/BUILD.gn
@@ -20,7 +20,7 @@ rtc_library("fft_size_128") {
   ]
   cflags = []
 
-  if (current_cpu == "x86" || current_cpu == "x64") {
+  if (target_cpu == "x86" || target_cpu == "x64") {
     sources += [
       "fft_size_128/ooura_fft_sse2.cc",
       "fft_size_128/ooura_fft_tables_neon_sse2.h",
@@ -38,14 +38,14 @@ rtc_library("fft_size_128") {
 
     deps += [ "../../../common_audio" ]
 
-    if (current_cpu != "arm64") {
+    if (target_cpu != "arm64") {
       # Enable compilation for the NEON instruction set.
       suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
       cflags += [ "-mfpu=neon" ]
     }
   }
 
-  if (current_cpu == "mipsel" && mips_float_abi == "hard") {
+  if (target_cpu == "mipsel" && mips_float_abi == "hard") {
     sources += [ "fft_size_128/ooura_fft_mips.cc" ]
   }
 }
diff --git a/common_audio/third_party/spl_sqrt_floor/BUILD.gn b/common_audio/third_party/spl_sqrt_floor/BUILD.gn
index ac862c65a8..e66ed2796e 100644
--- a/common_audio/third_party/spl_sqrt_floor/BUILD.gn
+++ b/common_audio/third_party/spl_sqrt_floor/BUILD.gn
@@ -12,11 +12,11 @@ rtc_library("spl_sqrt_floor") {
   visibility = [ "../..:common_audio_c" ]
   sources = [ "spl_sqrt_floor.h" ]
   deps = []
-  if (current_cpu == "arm") {
+  if (target_cpu == "arm") {
     sources += [ "spl_sqrt_floor_arm.S" ]
 
     deps += [ "../../../rtc_base/system:asm_defines" ]
-  } else if (current_cpu == "mipsel") {
+  } else if (target_cpu == "mipsel") {
     sources += [ "spl_sqrt_floor_mips.c" ]
   } else {
     sources += [ "spl_sqrt_floor.c" ]
diff --git a/modules/audio_processing/aec3/BUILD.gn b/modules/audio_processing/aec3/BUILD.gn
index 65aa6a9542..afd80a29cf 100644
--- a/modules/audio_processing/aec3/BUILD.gn
+++ b/modules/audio_processing/aec3/BUILD.gn
@@ -123,7 +123,7 @@ rtc_library("aec3") {
   ]
 
   defines = []
-  if (rtc_build_with_neon && current_cpu != "arm64") {
+  if (rtc_build_with_neon && target_cpu != "arm64") {
     suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
     cflags = [ "-mfpu=neon" ]
   }
@@ -160,7 +160,7 @@ rtc_library("aec3") {
     "//third_party/abseil-cpp/absl/strings:string_view",
   ]
 
-  if (current_cpu == "x86" || current_cpu == "x64") {
+  if (target_cpu == "x86" || target_cpu == "x64") {
     deps += [ ":aec3_avx2" ]
   }
 }
@@ -250,7 +250,7 @@ rtc_source_set("fft_data") {
   ]
 }
 
-if (current_cpu == "x86" || current_cpu == "x64") {
+if (target_cpu == "x86" || target_cpu == "x64") {
   rtc_library("aec3_avx2") {
     configs += [ "..:apm_debug_dump" ]
     sources = [
diff --git a/modules/audio_processing/aecm/BUILD.gn b/modules/audio_processing/aecm/BUILD.gn
index 80f2901049..a77f04aba5 100644
--- a/modules/audio_processing/aecm/BUILD.gn
+++ b/modules/audio_processing/aecm/BUILD.gn
@@ -29,14 +29,14 @@ rtc_library("aecm_core") {
   if (rtc_build_with_neon) {
     sources += [ "aecm_core_neon.cc" ]
 
-    if (current_cpu != "arm64") {
+    if (target_cpu != "arm64") {
       # Enable compilation for the NEON instruction set.
       suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
       cflags += [ "-mfpu=neon" ]
     }
   }
 
-  if (current_cpu == "mipsel") {
+  if (target_cpu == "mipsel") {
     sources += [ "aecm_core_mips.cc" ]
   } else {
     sources += [ "aecm_core_c.cc" ]
diff --git a/modules/audio_processing/agc/BUILD.gn b/modules/audio_processing/agc/BUILD.gn
index 754b807879..14b75f1229 100644
--- a/modules/audio_processing/agc/BUILD.gn
+++ b/modules/audio_processing/agc/BUILD.gn
@@ -84,7 +84,7 @@ rtc_library("legacy_agc") {
   ]
 
   if (rtc_build_with_neon) {
-    if (current_cpu != "arm64") {
+    if (target_cpu != "arm64") {
       # Enable compilation for the NEON instruction set.
       suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
       cflags = [ "-mfpu=neon" ]
diff --git a/modules/audio_processing/agc2/rnn_vad/BUILD.gn b/modules/audio_processing/agc2/rnn_vad/BUILD.gn
index a23a7c15ce..2b265650a0 100644
--- a/modules/audio_processing/agc2/rnn_vad/BUILD.gn
+++ b/modules/audio_processing/agc2/rnn_vad/BUILD.gn
@@ -18,7 +18,7 @@ rtc_library("rnn_vad") {
   ]
 
   defines = []
-  if (rtc_build_with_neon && current_cpu != "arm64") {
+  if (rtc_build_with_neon && target_cpu != "arm64") {
     suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
     cflags = [ "-mfpu=neon" ]
   }
diff --git a/modules/audio_processing/ns/BUILD.gn b/modules/audio_processing/ns/BUILD.gn
index 31ad61156d..6587fd14f3 100644
--- a/modules/audio_processing/ns/BUILD.gn
+++ b/modules/audio_processing/ns/BUILD.gn
@@ -43,7 +43,7 @@ rtc_static_library("ns") {
   ]
 
   defines = []
-  if (rtc_build_with_neon && current_cpu != "arm64") {
+  if (rtc_build_with_neon && target_cpu != "arm64") {
     suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
     cflags = [ "-mfpu=neon" ]
   }
diff --git a/modules/desktop_capture/BUILD.gn b/modules/desktop_capture/BUILD.gn
index cc2a1a2302..8178c3bc6c 100644
--- a/modules/desktop_capture/BUILD.gn
+++ b/modules/desktop_capture/BUILD.gn
@@ -10,7 +10,7 @@ import("//build/config/linux/gtk/gtk.gni")
 import("//build/config/ui.gni")
 import("../../webrtc.gni")
 
-use_desktop_capture_differ_sse2 = current_cpu == "x86" || current_cpu == "x64"
+use_desktop_capture_differ_sse2 = target_cpu == "x86" || target_cpu == "x64"
 
 config("x11_config") {
   if (rtc_use_x11_extensions) {
diff --git a/webrtc.gni b/webrtc.gni
index c7d0befb56..e2830f07a3 100644
--- a/webrtc.gni
+++ b/webrtc.gni
@@ -169,13 +169,13 @@ declare_args() {
 
   # Selects fixed-point code where possible.
   rtc_prefer_fixed_point = false
-  if (current_cpu == "arm" || current_cpu == "arm64") {
+  if (target_cpu == "arm" || target_cpu == "arm64") {
     rtc_prefer_fixed_point = true
   }
 
   # Determines whether NEON code will be built.
   rtc_build_with_neon =
-      (current_cpu == "arm" && arm_use_neon) || current_cpu == "arm64"
+      (target_cpu == "arm" && arm_use_neon) || target_cpu == "arm64"
 
   # Enable this to build OpenH264 encoder/FFmpeg decoder. When building WebRTC
   # as part of Chromium, this is delegated to `media_use_openh264`. When