Skip to content

Commit 67bbd3f

Browse files
authored
Merge pull request #1597 from evoskuil/master
Update HAVE comments, remove gcc from execution policy.
2 parents 43c6c0f + aea01e2 commit 67bbd3f

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

include/bitcoin/system/have.hpp

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
#define HAVE_VECTOR_CONSTEXPR
203203
// Ubuntu clang version 15.0.7
204204
#else
205-
////#define HAVE_RANGES (N/A)
205+
////#define HAVE_RANGES (v16)
206206
////#define HAVE_CONSTEVAL (v17)
207207
#define HAVE_STRING_CONSTEXPR
208208
#define HAVE_VECTOR_CONSTEXPR
@@ -216,9 +216,17 @@
216216
#endif
217217
#endif
218218

219-
/// No std::execution on clang (C++17).
220-
#if defined(HAVE_CPP17) && !defined(HAVE_CLANG)
221-
#define HAVE_EXECUTION
219+
/// C++20: parenthesized initialization of aggregates requires clang16/xcode16.
220+
/// We don't have macro treatment for that, just ad-hoc conditions.
221+
222+
/// None on xcode.
223+
/// Requires link with -ltbb on gcc (v9).
224+
/// Experimental on clang (libcxx.llvm.org/Status/PSTL.html), requires:
225+
/// -fexperimental-library
226+
#if defined(HAVE_CPP17)
227+
#if defined(HAVE_MSC)
228+
#define HAVE_EXECUTION
229+
#endif
222230
#endif
223231

224232
/// These are manually configured here.

0 commit comments

Comments
 (0)