Bug 1415753 - SRTP fails to initialize on mips, switch to use CPU_CISC. r=drno
authorhuangwenjun <huangwenjun-hf@loongson.cn>
Wed, 08 Nov 2017 18:06:00 -0500
changeset 391857 007b14e131474f1f8907762f1f3cbf757c743ef3
parent 391856 7f9b3d894ea3047b795014dde074389924fc7cb6
child 391858 64e81f8547bb60904e728d19c4bc28c9370c0575
push id32905
push usernerli@mozilla.com
push dateWed, 15 Nov 2017 09:57:50 +0000
treeherdermozilla-central@45715ece25fc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno
bugs1415753
milestone59.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 1415753 - SRTP fails to initialize on mips, switch to use CPU_CISC. r=drno
netwerk/srtp/src/moz.build
--- a/netwerk/srtp/src/moz.build
+++ b/netwerk/srtp/src/moz.build
@@ -47,17 +47,17 @@ for var in ('HAVE_STDLIB_H', 'HAVE_UINT8
             'HAVE_UINT32_T', 'HAVE_UINT64_T'):
     DEFINES[var] = 1
 
 # XXX while arm is not a CISC architecture, the code guarded by CPU_RISC makes
 # (at least) the AES ciphers fail their self-tests on ARM, so for now we're
 # falling back to the (presumably) slower-on-this-architecture but working
 # code path.  https://bugzilla.mozilla.org/show_bug.cgi?id=822380 has been filed
 # to make the right and more performant fix and push it back upstream.
-if CONFIG['CPU_ARCH'] in ('arm', 'x86', 'x86_64'):
+if CONFIG['CPU_ARCH'] in ('arm', 'x86', 'x86_64', 'mips', 'mips64'):
     DEFINES['CPU_CISC'] = 1
 else:
     # best guess
     DEFINES['CPU_RISC'] = 1
 
 if  CONFIG['CPU_ARCH'] in ('x86', 'x86_64'):
     DEFINES['HAVE_X86'] = True