* [gentoo-dev] Building gcc-x[ada] with gcc-y[ada]
@ 2022-10-22 21:42 Alfredo Tupone
0 siblings, 0 replies; only message in thread
From: Alfredo Tupone @ 2022-10-22 21:42 UTC (permalink / raw
To: gentoo-dev
I knew that building gcc+ada with an already bootstrapped gcc[ada] is
not supported if you build an older compiler:
like you cannot emerge gcc-10.4.0[ada] using gcc-12.2.0[ada]
I would like to warn the user (and possibly disable ada? ).
I tried this on my local PC
toolchain_pkg_pretend() {
if ! _tc_use_if_iuse cxx ; then
_tc_use_if_iuse go && \
ewarn 'Go requires a C++ compiler, disabled due to USE="-cxx"' _tc_use_if_iuse objc++ && \
ewarn 'Obj-C++ requires a C++ compiler, disabled due to USE="-cxx"' _tc_use_if_iuse gcj && \
ewarn 'GCJ requires a C++ compiler, disabled due to USE="-cxx"'
fi
+ if _tc_use_if_iuse ada ; then
+ local version=$($(tc-getCC) -dumpversion)
+ if $(ver_test ${version} -gt ${GCC_CONFIG_VER}); then
+ ewarn 'Ada require an older compiler'
+ ewarn "You are building ${GCC_CONFIG_VER} with ${version}"
+ fi
+ fi
want_minispecs
}
I don't know if this code breaks other things, if it works everywhere
...
Please comment
Alfredo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-22 21:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-22 21:42 [gentoo-dev] Building gcc-x[ada] with gcc-y[ada] Alfredo Tupone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox