lto: set nthreads_var to 1 if it is zero

gcc/ChangeLog:

	PR lto/98275
	* lto-wrapper.c: Do not use -j0 when we are unable to detect
	number of cores.
This commit is contained in:
Martin Liska 2020-12-15 09:59:04 +01:00
parent 59482fa1e7
commit cab1b0ebc0

View File

@ -1780,6 +1780,8 @@ cont1:
{
char buf[256];
init_num_threads ();
if (nthreads_var == 0)
nthreads_var = 1;
if (verbose)
fprintf (stderr, "LTO parallelism level set to %ld\n",
nthreads_var);