| 456 |
456 |
# Ensure we have enough disk space to compile
|
| 457 |
457 |
if use pgo || use debug ; then
|
| 458 |
458 |
CHECKREQS_DISK_BUILD="17000M"
|
|
459 |
|
|
460 |
if ! use clang ; then
|
|
461 |
if tc-is-gcc && ver_test "$(gcc-major-version)" -ge 16 && [[ -z "${I_KNOW_WHAT_I_AM_DOING}" ]] ; then
|
|
462 |
eerror "Firefox-140esr can't be compiled with +pgo using gcc >= 16. Use:"
|
|
463 |
eerror " 1) gcc < 16 instead, such as stable gcc-15.2.1,"
|
|
464 |
eerror " 2) \"clang\" use flag to compile Firefox-140esr, or"
|
|
465 |
eerror " 3) disable pgo via \"-pgo\" use flag."
|
|
466 |
eerror "Everything else works with gcc-16 except +pgo."
|
|
467 |
eerror ""
|
|
468 |
eerror "Follow Gentoo bug #975851 or upstream bug #2041879 for progress."
|
|
469 |
eerror "To skip this check for testing purposes, export I_KNOW_WHAT_I_AM_DOING=1 env."
|
|
470 |
die "Firefox-${PV} with gcc+pgo cannot be compiled with the detected gcc version: $(gcc-fullversion)"
|
|
471 |
fi
|
|
472 |
fi
|
| 459 |
473 |
elif tc-is-lto ; then
|
| 460 |
474 |
CHECKREQS_DISK_BUILD="9900M"
|
| 461 |
475 |
else
|
| ... | ... | |
| 483 |
497 |
if ! has userpriv ${FEATURES} ; then
|
| 484 |
498 |
eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
|
| 485 |
499 |
fi
|
|
500 |
|
|
501 |
if ! use clang ; then
|
|
502 |
if tc-is-gcc && ver_test "$(gcc-major-version)" -ge 16 && [[ -z "${I_KNOW_WHAT_I_AM_DOING}" ]] ; then
|
|
503 |
eerror "Firefox-140esr can't be compiled with +pgo using gcc >= 16. Use:"
|
|
504 |
eerror " 1) gcc < 16 instead, such as stable gcc-15.2.1,"
|
|
505 |
eerror " 2) \"clang\" use flag to compile Firefox-140esr, or"
|
|
506 |
eerror " 3) disable pgo via \"-pgo\" use flag."
|
|
507 |
eerror "Everything else works with gcc-16, but +pgo doesn't."
|
|
508 |
eerror ""
|
|
509 |
eerror "Follow Gentoo bug #975851 or upstream bug #2041879 to follow progress."
|
|
510 |
eerror "To skip this check for testing purposes, export I_KNOW_WHAT_I_AM_DOING=1 env."
|
|
511 |
die "Firefox-${PV} with gcc+pgo cannot be compiled with the detected gcc version: $(gcc-fullversion)"
|
|
512 |
fi
|
|
513 |
fi
|
| 486 |
514 |
fi
|
| 487 |
515 |
|
| 488 |
516 |
if [[ ${use_lto} = yes ]]; then
|