Bug 1628702 - fix widows build failures: lld-link: error: undefined symbol: _NtQueryVirtualMemory@24 from bug 1603974. r=Paenglab
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Thu, 09 Apr 2020 18:20:16 +0300
changeset 38763 80c2e6ea5e317b1a533a6e3ccb0c321aeea05538
parent 38762 7ebcf56c0e59161b0e8dade8311e95d23b38980e
child 38764 27f756d7fac7f2f2bb6055db00f45bafe0d776b9
push id401
push userclokep@gmail.com
push dateMon, 01 Jun 2020 20:41:59 +0000
reviewersPaenglab
bugs1628702, 1603974
Bug 1628702 - fix widows build failures: lld-link: error: undefined symbol: _NtQueryVirtualMemory@24 from bug 1603974. r=Paenglab
mail/app/moz.build
--- a/mail/app/moz.build
+++ b/mail/app/moz.build
@@ -45,16 +45,21 @@ if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_
         'sandbox_s',
     ]
 
     DELAYLOAD_DLLS += [
         'winmm.dll',
         'user32.dll',
     ]
 
+if CONFIG['OS_ARCH'] == 'WINNT':
+    OS_LIBS += [
+        'ntdll',
+    ]
+
 if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
     # Always enter a Windows program through wmain, whether or not we're
     # a console application.
     WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
 
 # Control the default heap size.
 # This is the heap returned by GetProcessHeap().
 # As we use the CRT heap, the default size is too large and wastes VM.