Configure-time testing for GCC plugins to determine C vs C++? (Was Re: status of GCC & C++)

Basile Starynkevitch basile@starynkevitch.net
Tue Mar 27 05:53:00 GMT 2012


On Mon, 26 Mar 2012 22:34:22 +0200
Romain Geissler <romain.geissler@gmail.com> wrote:

> Hi,
> You'll find something like this :
> 
> /* Define if building with C++. */
> #ifndef USED_FOR_TARGET
> #define ENABLE_BUILD_WITH_CXX 1
> #endif
> 
> So that's it, you already got all you need for all version.
> 

I did mention ENABLE_BUILD_WITH_CXX in previous email, but I am not very satisfied by
this solution.

I really think that GCC 4.7 should explicitly tell, e.g. thru gcc -v, how it was compiled
(ie in C or in C++ mode).

This would help a lot plugin package makers (not the same as plugin developers).

Cheers.


-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***



More information about the Gcc mailing list