Skip to content

Commit fd41d26

Browse files
committed
[cxx-interop] Disable c++ execution header with libstdcxx versions >= 11
Workaround for #75661
1 parent 3306ce6 commit fd41d26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
#include "version"
2+
13
// C++17 and newer:
24

35
// <execution> includes tbb headers, which might not be installed.
46
// Only include <execution> if tbb is installed.
5-
#if __has_include("execution") && __has_include(<tbb/blocked_range.h>)
7+
#if __has_include("execution") && __has_include(<tbb/blocked_range.h>) && (_GLIBCXX_RELEASE < 11)
68
#include "execution"
79
#endif

0 commit comments

Comments
 (0)