~mozillateam/firefox/firefox-beta.xenial

« back to all changes in this revision

Viewing changes to debian/patches/webaudio-armhf-neon-ftbfs.patch

  • Committer: Rico Tzschichholz
  • Date: 2023-03-11 10:22:30 UTC
  • Revision ID: ricotz@ubuntu.com-20230311102230-ox2c08ja56bjr0b0
* Fix armhf build failure
  - debian/patches/D172126.diff
  - debian/patches/webaudio-armhf-neon-ftbfs.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Unset BUILD_ARM_NEON in webaudio when building on armhf,
 
2
 This is specific to clang in Debian/Ubuntu.
 
3
Author: Rico Tzschichholz <ricotz@ubuntu.com>
 
4
Forwarded: not-needed
 
5
 
 
6
diff -r 81040f1134e8 dom/media/webaudio/FFTBlock.h
 
7
--- a/dom/media/webaudio/FFTBlock.h     Fri Mar 10 02:39:26 2023 +0000
 
8
+++ b/dom/media/webaudio/FFTBlock.h     Fri Mar 10 23:47:12 2023 +0100
 
9
@@ -7,6 +7,10 @@
 
10
 #ifndef FFTBlock_h_
 
11
 #define FFTBlock_h_
 
12
 
 
13
+#if defined(__arm__)
 
14
+#undef BUILD_ARM_NEON
 
15
+#endif
 
16
+
 
17
 #ifdef BUILD_ARM_NEON
 
18
 #  include <cmath>
 
19
 #  include "mozilla/arm.h"
 
20
diff -r 81040f1134e8 dom/media/webaudio/moz.build
 
21
--- a/dom/media/webaudio/moz.build      Fri Mar 10 02:39:26 2023 +0000
 
22
+++ b/dom/media/webaudio/moz.build      Fri Mar 10 23:47:12 2023 +0100
 
23
@@ -125,7 +125,7 @@
 
24
     "WebAudioUtils.cpp",
 
25
 ]
 
26
 
 
27
-if CONFIG["CPU_ARCH"] == "aarch64" or CONFIG["BUILD_ARM_NEON"]:
 
28
+if CONFIG["CPU_ARCH"] == "aarch64":
 
29
     DEFINES["USE_NEON"] = True
 
30
     LOCAL_INCLUDES += ["/third_party/xsimd/include"]
 
31
     SOURCES += ["AudioNodeEngineNEON.cpp"]