Commit a8ee495
committed
Fix LTO warning by enabling parallel compilation
When using make for builds, the following warning is observed:
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs.
To address this, -flto=auto is now used.
According to the [GCC documentation](https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html):
Use -flto=auto to use GNU make’s job server, if available, or otherwise
fall back to autodetection of the number of CPU threads present in your
system.
While this patch does not fully suppress the warning in certain GCC
versions (11.4 or later but below 12), it improves build performance by
enabling parallel LTO compilation whenever possible.1 parent 5b90d0f commit a8ee495
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments