Disable MP_64BIT when compiling with clang-cl on Windows.

__attribute__ ((mode(TI))) does not really work on clang-cl,
linking would fail with "unresolved external symbol __udivti3",
as reported in https://bugs.llvm.org/show_bug.cgi?id=25305

Fix to use default case with 28bit digits on clang-Windows.
This commit is contained in:
Vladislav Vaintroub
2019-02-14 00:20:36 +01:00
parent 46bb2591c8
commit 7328fce60d

View File

@ -85,7 +85,7 @@ extern "C" {
/* detect 64-bit mode if possible */
#if defined(__x86_64__)
#if defined(__x86_64__) && !(defined (_MSC_VER) && defined(__clang__))
#if !(defined(MP_64BIT) && defined(MP_16BIT) && defined(MP_8BIT))
#define MP_64BIT
#endif