Lines 976-988
src_configure() {
Link Here
|
976 |
# Upstream only supports lld or mold when using clang. |
976 |
# Upstream only supports lld or mold when using clang. |
977 |
if tc-ld-is-mold ; then |
977 |
if tc-ld-is-mold ; then |
978 |
# mold expects the -flto line from *FLAGS configuration, bgo#923119 |
978 |
# mold expects the -flto line from *FLAGS configuration, bgo#923119 |
979 |
append-ldflags "-flto=thin" |
979 |
append-ldflags "-flto" |
980 |
mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold |
980 |
mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold |
981 |
else |
981 |
else |
982 |
mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld |
982 |
mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld |
983 |
fi |
983 |
fi |
984 |
|
984 |
|
985 |
mozconfig_add_options_ac '+lto' --enable-lto=cross |
985 |
mozconfig_add_options_ac '+lto' --enable-lto=full |
986 |
|
986 |
|
987 |
else |
987 |
else |
988 |
# ThinLTO is currently broken, see bmo#1644409. |
988 |
# ThinLTO is currently broken, see bmo#1644409. |