Skip to content

Commit ba785f9

Browse files
committed
Correct fix to #158
1 parent 52cc059 commit ba785f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/cpp2util.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@
131131
#include <iterator>
132132
#include <ranges>
133133
#include <algorithm>
134-
#if defined(__GNUC__) && __GNUC__ < 11
134+
// GCC sometime after version 10 got a dependency on linking TBB if <execution> is
135+
// included, so let's not pull in that header in our "import std;" simulation mode
136+
#if not defined(__GNUC__) || __GNUC__ < 11
135137
#include <execution>
136138
#endif
137139
#include <bit>

0 commit comments

Comments
 (0)