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 391756 007b14e131474f1f8907762f1f3cbf757c743ef3
parent 391755 7f9b3d894ea3047b795014dde074389924fc7cb6
child 391757 64e81f8547bb60904e728d19c4bc28c9370c0575
push id97334
push userryanvm@gmail.com
push dateWed, 15 Nov 2017 02:16:11 +0000
treeherdermozilla-inbound@64e81f8547bb [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