Bug 1080968 - Don't use constexpr on clang-cl when emulating MSVC 2013

constexpr-ness of things can change the ABI requirements, and MSVC 2013
doesn't support constexpr, so choosing it for clang-cl when emulating
MSVC 2013 will cause ABI incomap issues between object files compiled
with the two compilers.

This reverts part of the commit for the original bug.
This commit is contained in:
Ehsan Akhgari 2016-01-27 21:00:32 -05:00
Родитель 7282ddd04a
Коммит a240a28c7f
1 изменённых файлов: 1 добавлений и 4 удалений

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

@ -58,10 +58,7 @@
# define MOZ_HAVE_EXPLICIT_CONVERSION
# endif
# ifdef __clang__
/* clang-cl probably supports constexpr and explicit conversions. */
# if __has_extension(cxx_constexpr)
# define MOZ_HAVE_CXX11_CONSTEXPR
# endif
/* clang-cl probably supports explicit conversions. */
# if __has_extension(cxx_explicit_conversions)
# define MOZ_HAVE_EXPLICIT_CONVERSION
# endif