Skip to content

Commit 7d5b634

Browse files
authored
Merge pull request #62133 from apple/egorzhdan/libstdcxx-tbb
[cxx-interop] Prevent "header not found" errors on Linux when tbb is not installed
2 parents 2083848 + d79144c commit 7d5b634

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/public/Cxx/std/libstdcxx.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#if __has_include("charconv")
1212
#include "charconv"
1313
#endif
14-
#if __has_include("execution")
14+
// <execution> includes tbb headers, which might not be installed.
15+
// Only include <execution> if tbb is installed.
16+
#if __has_include("execution") && __has_include(<tbb/blocked_range.h>)
1517
#include "execution"
1618
#endif
1719
#if __has_include("filesystem")

0 commit comments

Comments
 (0)