This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dealing with compilers that pretend to be GCC


On 01/19/12 06:24, Ludovic CourtÃs wrote:
> I donât see what can be done on âourâ side (perhaps Autoconfâs feature
> test could be strengthened, but how?)

Which feature test would that be?

I certainly understand the problem, and have run into issues where
clang fools 'configure' into thinking a GCC feature is present when
it isn't, but testing whether a compiler is GCC is not really the
Autoconf Way.

A 'configure' script is supposed to check for behavior, not identity.
If the compiler supports the features needed, then generally speaking
a 'configure' script shouldn't care whether the compiler is truly GCC.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]