tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Compiler selection support



On Tue, May 17, 2011 at 10:30:22PM +0200, Joerg Sonnenberger wrote:
> Hi all,
> the attached patch allows more fine grained compiler selection.
> (...)
> (c) A compiler is choosen for a language if the corresponding tool
> variable is set (e.g. TOOL_CC.gcc for the C frontend using GCC) and
> it is not black listed in the current scope (e.g. UNSUPPORTED_COMPILER.pcc
> says that PCC is not supported here). The decision is stored in
> ACTIVE_CC etc, later to be used for compiler-specific flags like
> COPTS_COMPILER.gcc.

Out of curiosity, how is C++ code that links to C libraries handled
in that framework? E.g. pcc (due to your patch) won't handle C++. Now
there's still some C++ in base, isn't there? won't there be problems
with gcc-compiled c++ that tries to link to pcc compiled C libs?

Regards,
-Martin


Home | Main Index | Thread Index | Old Index