Skip to content

Commit

Permalink
imcc-makefile: #21547
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@3129 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
Leopold Toetsch committed Mar 12, 2003
1 parent 46b257f commit eb22199
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions config/gen/makefiles.pl
Expand Up @@ -27,15 +27,22 @@ sub runstep {
commentType => '#');
genfile('config/gen/makefiles/imcc.in', 'languages/imcc/Makefile',
commentType => '#');
system("$^X -pi -e's/ -Wwrite-strings//' languages/imcc/Makefile");
system("$^X -pi -e's/ -Wcast-qual//' languages/imcc/Makefile");
system("$^X -pi -e's/ -Wno-unused/ -Wunused/' languages/imcc/Makefile");
genfile('config/gen/makefiles/bf.in', 'languages/bf/Makefile',
commentType => '#');
genfile('config/gen/makefiles/befunge.in', 'languages/befunge/Makefile',
commentType => '#');
genfile('config/gen/makefiles/ook.in', 'languages/ook/Makefile',
commentType => '#');

# Change compiler flags in IMCC's makefile using inplace edit.
my $PQ = Configure::Data->get('PQ');
my $imcc = 'languages/imcc/Makefile';
my $pgm = ' s/ -Wwrite-strings//;'
. ' s/ -Wcast-qual//;'
. ' s/ -Wno-unused/ -Wunused/;';
system "$^X -pi.bak -e$PQ$pgm$PQ $imcc" and warn;
unlink "$imcc.bak" or warn;

}

1;

0 comments on commit eb22199

Please sign in to comment.