Bug 1460882 Disable SANDBOX_EXPORTS for the MinGW Build r?bobowen draft
authorTom Ritter <tom@mozilla.com>
Fri, 11 May 2018 08:16:13 -0500
changeset 794205 14ec365e32c14758a804c9b048963c258d848728
parent 794204 7b1cb2b5630d775cbd91e05a751c9a69f948a406
push id109608
push userbmo:tom@mozilla.com
push dateFri, 11 May 2018 14:43:54 +0000
reviewersbobowen
bugs1460882
milestone60.0
Bug 1460882 Disable SANDBOX_EXPORTS for the MinGW Build r?bobowen MozReview-Commit-ID: 2muTxIYUx6F
security/sandbox/moz.build
old mode 100644
new mode 100755
--- a/security/sandbox/moz.build
+++ b/security/sandbox/moz.build
@@ -151,19 +151,21 @@ elif CONFIG['OS_ARCH'] == 'WINNT':
             'chromium/sandbox/win/src/service_resolver_64.cc',
         ]
     else:
         SOURCES += [
             'chromium/sandbox/win/src/resolver_32.cc',
             'chromium/sandbox/win/src/service_resolver_32.cc',
         ]
 
-    for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS',
+    for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM',
                 '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'):
         DEFINES[var] = True
+    if CONFIG['CC_TYPE'] != 'gcc':
+        DEFINES['SANDBOX_EXPORTS'] = True
 
     LOCAL_INCLUDES += ['/security/sandbox/chromium-shim']
     LOCAL_INCLUDES += ['/security/sandbox/chromium']
     LOCAL_INCLUDES += ['/nsprpub']
 
     DisableStlWrapping()
 
     # Suppress warnings in third-party code.