mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 19:24:48 +02:00
Remove FMT_NVCOMPILER_VERSION
This commit is contained in:
@@ -49,13 +49,6 @@
|
|||||||
# define FMT_ICC_VERSION 0
|
# define FMT_ICC_VERSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __NVCOMPILER
|
|
||||||
# define FMT_NVCOMPILER_VERSION \
|
|
||||||
(__NVCOMPILER_MAJOR__ * 100 + __NVCOMPILER_MINOR__)
|
|
||||||
#else
|
|
||||||
# define FMT_NVCOMPILER_VERSION 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __NVCC__
|
#ifdef __NVCC__
|
||||||
# define FMT_NVCC __NVCC__
|
# define FMT_NVCC __NVCC__
|
||||||
#else
|
#else
|
||||||
@@ -70,6 +63,12 @@
|
|||||||
# define FMT_MSC_WARNING(...)
|
# define FMT_MSC_WARNING(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _MSVC_LANG
|
||||||
|
# define FMT_CPLUSPLUS _MSVC_LANG
|
||||||
|
#else
|
||||||
|
# define FMT_CPLUSPLUS __cplusplus
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __has_feature
|
#ifdef __has_feature
|
||||||
# define FMT_HAS_FEATURE(x) __has_feature(x)
|
# define FMT_HAS_FEATURE(x) __has_feature(x)
|
||||||
#else
|
#else
|
||||||
@@ -90,12 +89,6 @@
|
|||||||
# define FMT_HAS_CPP_ATTRIBUTE(x) 0
|
# define FMT_HAS_CPP_ATTRIBUTE(x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSVC_LANG
|
|
||||||
# define FMT_CPLUSPLUS _MSVC_LANG
|
|
||||||
#else
|
|
||||||
# define FMT_CPLUSPLUS __cplusplus
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FMT_HAS_CPP14_ATTRIBUTE(attribute) \
|
#define FMT_HAS_CPP14_ATTRIBUTE(attribute) \
|
||||||
(FMT_CPLUSPLUS >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute))
|
(FMT_CPLUSPLUS >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute))
|
||||||
|
|
||||||
@@ -287,7 +280,7 @@
|
|||||||
|
|
||||||
// Enable minimal optimizations for more compact code in debug mode.
|
// Enable minimal optimizations for more compact code in debug mode.
|
||||||
FMT_GCC_PRAGMA("GCC push_options")
|
FMT_GCC_PRAGMA("GCC push_options")
|
||||||
#if !defined(__OPTIMIZE__) && !FMT_NVCOMPILER_VERSION
|
#if !defined(__OPTIMIZE__) && !defined(__NVCOMPILER)
|
||||||
FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
|
FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -166,11 +166,11 @@ FMT_END_NAMESPACE
|
|||||||
// https://github.com/fmtlib/fmt/issues/2510.
|
// https://github.com/fmtlib/fmt/issues/2510.
|
||||||
#ifndef __ICL
|
#ifndef __ICL
|
||||||
# if FMT_HAS_BUILTIN(__builtin_ctz) || FMT_GCC_VERSION || FMT_ICC_VERSION || \
|
# if FMT_HAS_BUILTIN(__builtin_ctz) || FMT_GCC_VERSION || FMT_ICC_VERSION || \
|
||||||
FMT_NVCOMPILER_VERSION
|
defined(__NVCOMPILER)
|
||||||
# define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
|
# define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
|
||||||
# endif
|
# endif
|
||||||
# if FMT_HAS_BUILTIN(__builtin_ctzll) || FMT_GCC_VERSION || \
|
# if FMT_HAS_BUILTIN(__builtin_ctzll) || FMT_GCC_VERSION || \
|
||||||
FMT_ICC_VERSION || FMT_NVCOMPILER_VERSION
|
FMT_ICC_VERSION || defined(__NVCOMPILER)
|
||||||
# define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
|
# define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user