Skip to content

Commit

Permalink
Get the ccname from either ccname or just cc config var.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@657 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
Gregor N. Purdy committed Dec 31, 2001
1 parent aee0536 commit 73aa2c3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Configure.pl
Expand Up @@ -178,9 +178,17 @@ END
$c{PQ} = "'";
}

#
# If using gcc, crank up its warnings as much as possible and make it behave
# ansi-ish.
if ($Config{ccname} eq "gcc") {
#
# Some Perl versions put this in Config variable 'ccname', others in 'cc'. We
# prefer the former, but accept the latter.
#

my $ccname = $Config{ccname} || $Config{cc};

if ($ccname eq "gcc") {
$c{cc_warn} = " -Wall -ansi -pedantic -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Winline -Wredundant-decls -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Winline";
}

Expand Down

0 comments on commit 73aa2c3

Please sign in to comment.