On Fri, Nov 27, 2026 at 10:50 PM Jonathan Wakely <[email protected]> wrote:
> Force _ONEDPL_HETERO_BACKEND to zero so that we never try to include the > pstl/hetero/*.h headers which were not imported from upstream. > > libstdc++-v3/ChangeLog: > > * include/pstl/onedpl_config.h (_ONEDPL_HETERO_BACKEND): Undef > and define to 0. > --- > > Tested x86_64-linux. > LGTM > > libstdc++-v3/include/pstl/onedpl_config.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libstdc++-v3/include/pstl/onedpl_config.h > b/libstdc++-v3/include/pstl/onedpl_config.h > index 48f32e2c3fb3..9eb624aeda82 100644 > --- a/libstdc++-v3/include/pstl/onedpl_config.h > +++ b/libstdc++-v3/include/pstl/onedpl_config.h > @@ -58,6 +58,9 @@ > # define _ONEDPL_HETERO_BACKEND 1 > #endif > > +#else > +# undef _ONEDPL_HETERO_BACKEND > +# define _ONEDPL_HETERO_BACKEND 0 > #endif > > // -- Configure host backends and common parts -- > -- > 2.56.1 > >
