Bug 1557259 - Don't use clang integrated assembler for jsimd_dspr2.S. r=dmajor, a=jcristau
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 06 Jun 2019 12:39:12 +0000
changeset 536823 5baea46a218f1f526b90cbf2cd00d91ba16adc35
parent 536822 cd40c1684a6001500f3a4a261603f1849eb6e9e9
child 536824 7d0193261d238000fac1ac34025e52d4905a9ad7
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdmajor, jcristau
bugs1557259
milestone68.0
Bug 1557259 - Don't use clang integrated assembler for jsimd_dspr2.S. r=dmajor, a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D33931
media/libjpeg/moz.build
--- a/media/libjpeg/moz.build
+++ b/media/libjpeg/moz.build
@@ -89,16 +89,20 @@ if CONFIG['LIBJPEG_TURBO_ASFLAGS']:
             'simd/arm64/jsimd.c',
             'simd/arm64/jsimd_neon.S',
         ]
     elif CONFIG['CPU_ARCH'] == 'mips32':
         SOURCES += [
             'simd/mips/jsimd.c',
             'simd/mips/jsimd_dspr2.S',
         ]
+        if CONFIG['CC_TYPE'] == 'clang':
+            SOURCES['simd/mips/jsimd_dspr2.S'].flags += [
+                '-fno-integrated-as',
+            ]
     elif CONFIG['CPU_ARCH'] == 'x86_64':
         SOURCES += [
             'simd/x86_64/jccolor-avx2.asm',
             'simd/x86_64/jccolor-sse2.asm',
             'simd/x86_64/jcgray-avx2.asm',
             'simd/x86_64/jcgray-sse2.asm',
             'simd/x86_64/jchuff-sse2.asm',
             'simd/x86_64/jcphuff-sse2.asm',