Skip to content

Commit

Permalink
Don't use 128 bit integers with clang-cl (#1800)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Kingcom authored Jul 31, 2020
1 parent a3dfd6f commit f0b84da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ template <typename T> 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;
Expand Down

0 comments on commit f0b84da

Please sign in to comment.