LTO: fallback to -flto=N if -flto=jobserver does not work.
gcc/ChangeLog: * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the makeserver cannot be detected, then use -flto=N fallback.
This commit is contained in:
parent
001c63d15e
commit
7f9b7ccf0c
1 changed files with 2 additions and 1 deletions
|
@ -1483,8 +1483,9 @@ run_gcc (unsigned argc, char *argv[])
|
|||
if (jobserver && jobserver_error != NULL)
|
||||
{
|
||||
warning (0, jobserver_error);
|
||||
parallel = 0;
|
||||
/* Fall back to auto parallelism. */
|
||||
jobserver = 0;
|
||||
auto_parallel = 1;
|
||||
}
|
||||
else if (!jobserver && jobserver_error == NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue