clang on windows support

This commit is contained in:
wuggy 2026-09-10 08:32:59 -07:00
commit 1d44f05fba
22 changed files with 208 additions and 65 deletions

View file

@ -4773,11 +4773,22 @@ if test "$MOZ_TREE_CAIRO"; then
if test "$COMPILE_ENVIRONMENT"; then
MOZ_CHECK_HEADER(d3d9.h, MOZ_ENABLE_D3D9_LAYER=1)
dnl SDK include paths can change between build shells. Do not cache
dnl these checks, or a stale failure disables required D3D exports.
unset ac_cv_header_d3d9_h ac_cv_header_d3d10_h
AC_MSG_CHECKING([for d3d9.h])
AC_TRY_COMPILE([#include <d3d9.h>], ,
[MOZ_ENABLE_D3D9_LAYER=1
AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
dnl D3D10 Layers depend on D2D Surfaces.
if test -n "$WIN32_D2D_SURFACE_FEATURE"; then
MOZ_CHECK_HEADER(d3d10.h, MOZ_ENABLE_D3D10_LAYER=1)
AC_MSG_CHECKING([for d3d10.h])
AC_TRY_COMPILE([#include <d3d10.h>], ,
[MOZ_ENABLE_D3D10_LAYER=1
AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
fi
fi
;;