Commit ae8629b2 authored by Jeff Muizelaar's avatar Jeff Muizelaar
Browse files

Bug 1833782. Enable CXX11 atomics on clang-cl. r=mstange

The old Win32 specific atomics support was accidentally removed in bug 739096.
However, we can just use the existing CXX11 atomic support because we build with
clang-cl.

Differential Revision: https://phabricator.services.mozilla.com/D179267
parent 99720f55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,6 @@ if CONFIG['MOZ_TREE_PIXMAN']:
    DEFINES['MOZ_TREE_PIXMAN'] = True

if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
    DEFINES['HAVE_CXX11_ATOMIC_PRIMITIVES'] = True
    # We would normally use autoconf to set these up, using AC_CHECK_SIZEOF.
    # But AC_CHECK_SIZEOF requires running programs to determine the sizes,
    # and that doesn't work so well with cross-compiling.  So instead we
@@ -236,6 +235,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):

# Normally determined by cairo's configure script.
DEFINES['HAVE_UINT64_T'] = True
DEFINES['HAVE_CXX11_ATOMIC_PRIMITIVES'] = True

if CONFIG['MOZ_TREE_FREETYPE']:
    DEFINES['HAVE_FT_LIBRARY_SETLCDFILTER'] = True