diff options
author | Sam James <sam@gentoo.org> | 2022-06-06 08:45:36 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-07 00:18:13 +0100 |
commit | 1aa736843e87e105cbe479dd21dd09679dacfbaa (patch) | |
tree | d4c58a81b38d8eda47f5187319e565c4c309b80d /eclass/toolchain.eclass | |
parent | toolchain.eclass: don't force bash in src_compile (diff) | |
download | gentoo-1aa736843e87e105cbe479dd21dd09679dacfbaa.tar.gz gentoo-1aa736843e87e105cbe479dd21dd09679dacfbaa.tar.bz2 gentoo-1aa736843e87e105cbe479dd21dd09679dacfbaa.zip |
toolchain.eclass: allow forcefully disabling bootstrapping for development
Users should *absolutely not* do this. It's just useful for quickly
testing eclass changes.
The resultant compiler may not be safe to use. Especially so if
unusual flags and environment is used.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 164bb1b16190..8015c5b447ff 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1759,7 +1759,13 @@ gcc_do_make() { # resulting binaries natively GCC_MAKE_TARGET=${GCC_MAKE_TARGET-all} else - if _tc_use_if_iuse pgo; then + if [[ ${EXTRA_ECONF} == *--disable-bootstrap* ]] ; then + GCC_MAKE_TARGET=${GCC_MAKE_TARGET-all} + + ewarn "Disabling bootstrapping. ONLY recommended for development." + ewarn "This is NOT a safe configuration for endusers!" + ewarn "This compiler may not be safe or reliable for production use!" + elif _tc_use_if_iuse pgo; then GCC_MAKE_TARGET=${GCC_MAKE_TARGET-profiledbootstrap} else GCC_MAKE_TARGET=${GCC_MAKE_TARGET-bootstrap-lean} |