Front page | perl.perl6.internals |
Postings from December 2001
RE: Cranky compilers
Thread Previous
|
Thread Next
From:
Brent Dax
Date:
December 2, 2001 11:52
Subject:
RE: Cranky compilers
Message ID:
FJELLKOPEAGHOOODKEDPAEPKCKAA.brentdax@cpan.org
Dan Sugalski:
# As has been pointed out to me, GCC is excessively permissive by
# default. So...
#
# We need a probe in configure.pl for GCC as the C compiler,
# and we need to
# have -Wall as a default switch on GCC builds. All builds
# should go without
# complaint to be considered passing.
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?
Another option is to do something like $out=`$c{cc} -v` and then look at
the output.
cl:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9254 for
80x86
Copyright (C) Microsoft Corporation 1984-2001. All rights reserved.
cl : Command line warning D4002 : ignoring unknown option '-v'
cl : Command line error D2003 : missing source filename
gcc:
Using builtin specs.
gcc version 2.95.3 20010315 (release) [FreeBSD]
Any other suggestions?
# Jarkko's got some truly fascist switches for gcc. Once we're
# -Wall clean,
# those will go in too...
--Brent Dax
brentdax@cpan.org
Configure pumpking for Perl 6
"Nothing important happened today."
--George III of England's diary entry for 4-Jul-1776
Thread Previous
|
Thread Next