Skip to content

Commit 083c26e

Browse files
authored
Merge pull request NVIDIA#2066 from ericniebler/do-not-ask-compiler-to-mangle-type-traits-intrinsics-part-deux
extend the `__mmangle_t` workaround to clang < 18
2 parents a56575c + 0254457 commit 083c26e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/stdexec/__detail/__meta.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ namespace STDEXEC
414414
template <template <class...> class _Fn, class... _Args>
415415
using __mmemoize_q = __mmemoize<__q<_Fn>, _Args...>;
416416

417-
#if STDEXEC_GCC()
418-
// GCC can not mangle builtins. __mangle_t introduces an
419-
// indirection that hides the builtin from the mangler.
417+
#if STDEXEC_GCC() || (STDEXEC_CLANG() && STDEXEC_CLANG_VERSION < 1800)
418+
// GCC and Clang < 18 cannot mangle builtins. __mmangle_t introduces an indirection
419+
// that hides the builtin from the mangler.
420420
template <template <class...> class _Fn, class... _Args>
421421
using __mmangle_t = __mmemoize_q<_Fn, _Args...>;
422422
#else

0 commit comments

Comments
 (0)