[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make special accommodation for cl in _AC_PROG_CC_G
From: |
Braden McDaniel |
Subject: |
Re: Make special accommodation for cl in _AC_PROG_CC_G |
Date: |
Thu, 17 Jul 2003 19:41:24 -0400 |
User-agent: |
Internet Messaging Program (IMP) 4.0-cvs |
Quoting Kevin Ryde <address@hidden>:
> Braden McDaniel <address@hidden> writes:
> >
> > This patch explicitly checks $CC to see whether it is "cl" or "cl.exe".
>
> Hard coding compiler names is usually not a good idea. If a
> particular compiler must be identified then testing a #define like for
> gcc is better.
cl defines _MSC_VER, IIRC. I can change the test to check for that if it would
be preferred.
> Maybe some other strategy would be more general. Like checking that
> adding -g both works and doesn't output any extra messages, or
> something like that.
I think finding out what "extra" is would be extremely difficult, if not
impossible, to do in a general way.
--
Braden McDaniel e-mail: <address@hidden>
<http://endoframe.com> Jabber: <address@hidden>