On Wed, Apr 21, 2021 at 03:25:26PM -0400, David Edelsohn wrote:
> > What would be IMHO a good idea would be to use configure test for
> > #include <thread>
> > int t = std::thread::hardware_concurrency ();
> > and in that case use that as a fallback to the previous implementation,
> > that will be strictly an improvement.
> 
> Would it be good enough to add a compile-time test for GCC VERSION >=
> 10 and fallback to the value 1 otherwise?  If one performs the

No, that will make all cross-compilers LTO non-parallelized.
Adding a configure check for it is very easy.

        Jakub

Reply via email to