This is the mail archive of the cygwin mailing list for the Cygwin 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: Geomview & Cygwin setup


At Friday 2006-04-28 15:17 +0100, Dave Korn wrote:
> __CYGWIN__ is defined for gcc; gcc -v should report 'cygwin special'.
> I do not recommend changing the environment to __CYGMING__ to match
> in a further attempt at humour.
>
> If you want people to use the information you provide rationally, do
> not colour that information with irrational attempts at humour to
> provide misinformation that causes doubt.
>
> We need to trust the output of gcc -v.

  No, this is completely wrong and absolutely not what you want to do.  The
output of "gcc -v" is a human-readable summary of various internal information
which can be obtained by more reliable means for programmatic use.  Your
attempt to indirectly deduce the same info from a freeform text string
presupposes many assumptions that simply do not hold, and therefore is doomed
to incorrectness.

In that case, gcc -v may as well return an empty string, since, as you say, it's always going to be wrong, and because obviously even humans have trouble parsing its output.


L.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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