mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
libstdc++: adjust std module TBB workaround
Messing with macros before possibly importing the stdc++.h header unit is bad form; better to mess with (other) macros afterward. libstdc++-v3/ChangeLog: * src/c++23/std.cc.in: Move TBB macro shenanigans after bits/stdc++.h.
This commit is contained in:
@@ -23,11 +23,14 @@
|
||||
|
||||
module;
|
||||
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
// stdc++.h doesn't include <execution> because of TBB issues;
|
||||
// FIXME for now let's avoid the problem by suppressing TBB.
|
||||
#define _GLIBCXX_USE_TBB_PAR_BACKEND 0
|
||||
|
||||
#include <bits/stdc++.h>
|
||||
#ifdef _PSTL_PAR_BACKEND_TBB
|
||||
#undef _PSTL_PAR_BACKEND_TBB
|
||||
#define _PSTL_PAR_BACKEND_SERIAL
|
||||
#endif
|
||||
#include <execution>
|
||||
|
||||
// Module std does include deprecated library interfaces.
|
||||
|
||||
Reference in New Issue
Block a user