Bug 1223312 - Part 1: Enable webrtc on MIPS64 platforms by default. r=drno, r=jesup, r=ted
authorhuangwenjun <huangwenjun-hf@loongson.cn>
Wed, 08 Nov 2017 18:30:00 -0500
changeset 444475 7184839aee72a94713d010d9c26a91673630cae9
parent 444474 8cbd780d86fcc63b2e826494afb59452b705e3e8
child 444476 f3a200c2049fffcb9687becad107745bb1216463
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno, jesup, ted
bugs1223312
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1223312 - Part 1: Enable webrtc on MIPS64 platforms by default. r=drno, r=jesup, r=ted
media/webrtc/trunk/build/build_config.h
toolkit/moz.configure
--- a/media/webrtc/trunk/build/build_config.h
+++ b/media/webrtc/trunk/build/build_config.h
@@ -127,16 +127,20 @@
 #elif defined(__sparc__) && defined(__arch64__)
 #define ARCH_CPU_SPARC_FAMILY 1
 #define ARCH_CPU_SPARC 1
 #define ARCH_CPU_64_BITS 1
 #elif defined(__sparc__)
 #define ARCH_CPU_SPARC_FAMILY 1
 #define ARCH_CPU_SPARC 1
 #define ARCH_CPU_32_BITS 1
+#elif defined(__mips64) && defined(__LP64__)
+#define ARCH_CPU_MIPS_FAMILY 1
+#define ARCH_CPU_MIPS 1
+#define ARCH_CPU_64_BITS 1
 #elif defined(__mips__)
 #define ARCH_CPU_MIPS_FAMILY 1
 #define ARCH_CPU_MIPS 1
 #define ARCH_CPU_32_BITS 1
 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 #define ARCH_CPU_LITTLE_ENDIAN 1
 #else
 #define ARCH_CPU_BIG_ENDIAN 1
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -1151,17 +1151,17 @@ def webrtc_default(target):
     os_match = False
     for os_fragment in ('linux', 'mingw', 'android', 'linuxandroid',
                         'dragonfly', 'freebsd', 'netbsd', 'openbsd',
                         'darwin'):
         if target.raw_os.startswith(os_fragment):
             os_match = True
 
     cpu_match = False
-    if (target.cpu in ('x86_64', 'arm', 'aarch64', 'x86', 'ia64') or
+    if (target.cpu in ('x86_64', 'arm', 'aarch64', 'x86', 'ia64', 'mips32', 'mips64') or
         target.cpu.startswith('ppc')):
         cpu_match = True
 
     if os_match and cpu_match:
         return True
     return False
 
 option('--disable-webrtc', default=webrtc_default,