Bug 1083616 - Build on clang-cl with MSVC 2013 with fallback emulation; r=gps

We officially test MSVC2013 builds now, so it makes sense to
emulate the same compiler when building with clang-cl.  Also,
we need to build with fallback mode, since clang-cl doesn't
still support SEH.  We also need to pass these flags to NSS
too for the same reason.
This commit is contained in:
Ehsan Akhgari 2014-10-16 21:40:22 -04:00
Родитель 6e5f973009
Коммит 94a20717aa
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -506,6 +506,11 @@ case "$target" in
if test -z "$CLANG_CL"; then
AC_DEFINE(HAVE_SEH_EXCEPTIONS)
else
# Build on clang-cl with MSVC 2013 with fallback emulation.
CFLAGS="$CFLAGS -fmsc-version=1800 -fallback"
CXXFLAGS="$CXXFLAGS -fmsc-version=1800 -fallback"
# Send our CFLAGS to NSS too
MOZ_CFLAGS_NSS=1
AC_DEFINE_UNQUOTED(GTEST_HAS_SEH, 0)
fi