develooper Front page | perl.perl6.internals | Postings from December 2001

RE: Cranky compilers

Thread Previous
From:
Andy Dougherty
Date:
December 3, 2001 06:47
Subject:
RE: Cranky compilers
Message ID:
Pine.SOL.4.10.10112030943190.5234-100000@maxwell.phys.lafayette.edu
On Sun, 2 Dec 2001, Brent Dax wrote:

> It looks like $Config{gccversion} is empty unless we're using gcc.
> However, I can't confirm this--I have access to one system using cl and
> another system using gcc, and it's consistent across those two, but I
> can't check others.  Is it?

Yes.  According to the Config.pm documentation (e.g. C< perldoc Config >)

"gccversion"
     From gccvers.U:
           If "GNU" cc (gcc) is used, this variable holds "1" or
           "2" to indicate whether the compiler is version 1 or
           2.  This is used in setting some of the default
           cflags.  It is set to '' if not gcc.

Actually, in more recent perls, it could contain a full string, such as
'2.95.4 20010319 (Debian prerelease)', so don't go looking for an exact
match.  I also don't have a gcc-3 handy to check what it returns.
But gccversion is still set to '' if not gcc.

-- 
    Andy Dougherty		doughera@lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About