From f0b84da5ff639f4ab1ee86381d6d9442679218ad Mon Sep 17 00:00:00 2001 From: Kingcom Date: Fri, 31 Jul 2020 02:21:35 +0200 Subject: [PATCH] Don't use 128 bit integers with clang-cl (#1800) clang-cl currently has a long-standing bug that using 128 bit integers generates references to symbols that are provided neither by its own nor by the Microsoft runtime: https://bugs.llvm.org/show_bug.cgi?id=25305 --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index a9d07de5..76569a2d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -298,7 +298,7 @@ template struct std_string_view {}; #ifdef FMT_USE_INT128 // Do nothing. -#elif defined(__SIZEOF_INT128__) && !FMT_NVCC +#elif defined(__SIZEOF_INT128__) && !FMT_NVCC && !(FMT_CLANG_VERSION && FMT_MSC_VER) # define FMT_USE_INT128 1 using int128_t = __int128_t; using uint128_t = __uint128_t;