Skip to content

Commit

Permalink
Merge pull request #1597 from evoskuil/master
Browse files Browse the repository at this point in the history
Update HAVE comments, remove gcc from execution policy.
  • Loading branch information
evoskuil authored Jan 28, 2025
2 parents 43c6c0f + aea01e2 commit 67bbd3f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions include/bitcoin/system/have.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
#define HAVE_VECTOR_CONSTEXPR
// Ubuntu clang version 15.0.7
#else
////#define HAVE_RANGES (N/A)
////#define HAVE_RANGES (v16)
////#define HAVE_CONSTEVAL (v17)
#define HAVE_STRING_CONSTEXPR
#define HAVE_VECTOR_CONSTEXPR
Expand All @@ -216,9 +216,17 @@
#endif
#endif

/// No std::execution on clang (C++17).
#if defined(HAVE_CPP17) && !defined(HAVE_CLANG)
#define HAVE_EXECUTION
/// C++20: parenthesized initialization of aggregates requires clang16/xcode16.
/// We don't have macro treatment for that, just ad-hoc conditions.

/// None on xcode.
/// Requires link with -ltbb on gcc (v9).
/// Experimental on clang (libcxx.llvm.org/Status/PSTL.html), requires:
/// -fexperimental-library
#if defined(HAVE_CPP17)
#if defined(HAVE_MSC)
#define HAVE_EXECUTION
#endif
#endif

/// These are manually configured here.
Expand Down

0 comments on commit 67bbd3f

Please sign in to comment.