Bug 1540079 - Firefox NSPR build on Solaris SPARC need to include os_SunOS_sparcv9.s r=glandium
authorPetr Sumbera <petr.sumbera@oracle.com>
Fri, 05 Apr 2019 06:43:52 +0000
changeset 468112 7295967255ecabb8a74a7217d962778b2018f6d1
parent 468086 20750a2dc85b773ce30f99d1301213350425fd1c
child 468113 6b9a80647f05e679c997b031b1641dcd867fded2
push id35820
push userbtara@mozilla.com
push dateFri, 05 Apr 2019 16:17:46 +0000
treeherdermozilla-central@9b83eeea8a82 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1540079
milestone68.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 1540079 - Firefox NSPR build on Solaris SPARC need to include os_SunOS_sparcv9.s r=glandium Differential Revision: https://phabricator.services.mozilla.com/D26131
config/external/nspr/pr/moz.build
--- a/config/external/nspr/pr/moz.build
+++ b/config/external/nspr/pr/moz.build
@@ -71,16 +71,19 @@ elif CONFIG['OS_TARGET'] == 'SunOS':
         _PR_INET6=True,
     )
     DEFINES['SOLARIS'] = True
     SOURCES += ['/nsprpub/pr/src/md/unix/solaris.c']
     if CONFIG['CPU_ARCH'] == 'x86_64':
         SOURCES += ['/nsprpub/pr/src/md/unix/os_SunOS_x86_64.s']
     elif CONFIG['CPU_ARCH'] == 'x86':
         SOURCES += ['/nsprpub/pr/src/md/unix/os_SunOS_x86.s']
+    elif CONFIG['CPU_ARCH'] == 'sparc64':
+        ASFLAGS += ['-x', 'assembler-with-cpp', '-D_ASM']
+        SOURCES += ['/nsprpub/pr/src/md/unix/os_SunOS_sparcv9.s']
 elif CONFIG['OS_TARGET'] == 'WINNT':
     OS_LIBS += [
         'advapi32',
         'ws2_32',
         'mswsock',
         'winmm',
     ]
     DEFINES.update(