gecko-dev/gfx/angle/moz.build.common
Mike Hommey 278fa528e2 Bug 1727687 - Upgrade windows builds to MSVC 15.9.6. r=firefox-build-system-reviewers,agashlin,jgilbert,mhentges
There are two big parts in the MSVC toolchain we use:
- the Windows 10 SDK
- Visual C++

For the former, both the 15.8.4 and 15.9.6 toolchains are using the same
version of the Win10 SDK.
For the latter, we're not using the compiler itself anymore, so the only
substantial difference is in the headers and libraries included with
Visual C++, as well as the redist libraries for the CRT. Both versions
are supposed to be compatible to the same set of OS versions, fitting
our system requirements.

This makes us use the same version of MSVC on all our Windows builds
(arm64 builds were already on 15.9.6).

Differential Revision: https://phabricator.services.mozilla.com/D123720
2021-08-30 21:29:35 +00:00

32 lines
987 B
Plaintext

AllowCompilerWarnings()
if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'):
CXXFLAGS += [
'-Wno-final-dtor-non-final-class',
'-Wno-implicit-const-int-float-conversion',
'-Wno-range-loop-construct',
]
CXXFLAGS += CONFIG['MOZ_X11_CFLAGS']
if CONFIG['INTEL_ARCHITECTURE']:
CXXFLAGS += CONFIG['SSE2_FLAGS']
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
DEFINES['ANGLE_IS_WIN'] = True
# ANGLE wants NTDDI_WIN10_VB, but:
# > /builds/worker/checkouts/gecko/vs2017_15.9.6/SDK/include/10.0.17134.0/winrt/wrl/def.h(48,2):
# > #error WRL requires NTDDI_VERSION to be #defined at least to NTDDI_VISTA or greater
DEFINES['NTDDI_VERSION'] = 'NTDDI_WIN10_RS2'
if CONFIG['INTEL_ARCHITECTURE']:
DEFINES['X86_WINDOWS'] = True
else:
DEFINES['ANGLE_PLATFORM_EXPORT'] = ''
DEFINES['__NDK_FPABI__'] = ''
DEFINES['ANGLE_SKIP_DXGI_1_2_CHECK'] = True
DEFINES['ANGLE_ENABLE_KEYEDMUTEX'] = True
DEFINES['ANGLE_TRANSLATOR_ESSL_ONLY'] = True