aboutsummaryrefslogtreecommitdiff
path: root/tests/common.testscript
diff options
context:
space:
mode:
authorMatthew Krupcale <mkrupcale@matthewkrupcale.com>2020-08-09 09:45:15 -0400
committerMatthew Krupcale <mkrupcale@matthewkrupcale.com>2020-08-10 23:11:26 -0400
commitc55c3335c5e86777137c8dcca504af9c1d2cadf1 (patch)
treeefcfce351cc754034ba30201d2a3857cb8f6a050 /tests/common.testscript
parent1276a28b88295caf27c5df97d2e61b28feed3999 (diff)
Adjust linker arguments for LTO parallelization
GCC 10+ and Clang 4+ support controlling the number of LTO threads/jobs used during linking. Use the build2 scheduler to allocate up to the number of hardware threads to the GCC or Clang linker processes when -flto=auto or -flto=thin is specified, respectively. Otherwise, GCC or Clang will attempt to spawn the number of hardware threads detected for each linker process, which could result in up to n^2 linker threads on a CPU with n hardware threads.
Diffstat (limited to 'tests/common.testscript')
0 files changed, 0 insertions, 0 deletions