mold icon indicating copy to clipboard operation
mold copied to clipboard

Does mold support gcc12+lto multithread acceleration?

Open miz2019 opened this issue 8 months ago • 1 comments

I use mold in our project,
with option -flto=auto -flto-partition=one -ffat-lto-objects -B/mold/path works ok, but there is no multithread acceleration (see from in top). Did I miss something?

miz2019 avatar Mar 21 '25 09:03 miz2019

-flto-partition=one

I believe this is the reason: you only used one partition for WHOPR and therefore the LTRANS step is simply not parallelized.

jinghao-jia avatar Apr 02 '25 03:04 jinghao-jia