diff options
author | Matthew Krupcale <mkrupcale@matthewkrupcale.com> | 2020-08-09 09:45:15 -0400 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-08-12 14:03:10 +0200 |
commit | d7571f706928dd023097540dfc88448cf80fdcdb (patch) | |
tree | 5e83dada2725ddf08c47f74334b2eebcf92854d3 /repositories.manifest | |
parent | ca2283bdc00529967f9ccd9bf0097714447af351 (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 'repositories.manifest')
0 files changed, 0 insertions, 0 deletions