https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81878

--- Comment #22 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 24 Sep 2018, tnfchris at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81878
> 
> --- Comment #21 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
> Hmm, I see what you mean. Currently though CXX is unable to find the lto
> plugin.  It's somewhat confusing that CC is set to target and CXX is host (but
> reading back on the ticket you pointed that out as well).

CXX should find the hosts LTO plugin but that should never be necessary
because we do not use the host-compiler to LTO.  So maybe _that's_ the
issue - that we use -flto or that we end up linking objects with LTO
bytecode.

And yes, the Ada boostrap setup is quite "wrecked" and doesn't properly
separate host tools from built ones :/

> So I guess the question is why does CXX not contain all options to find it's
> plugins and why does this work on Linux.
> 
> Do you happen to know where CXX is set?

CXX is set by the toplevel configure - it's the host compiler (which may
be not GCC)

Reply via email to