mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 22:11:47 +08:00
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:
parent
59482fa1e7
commit
cab1b0ebc0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user