This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Initial check-in of perl compiler.
[perl5.git] / cc_harness
CommitLineData
79ee8297
MB
1use Config;
2
3$libdir = "$Config{installarchlib}/CORE";
4
5if (!grep(/^-[cS]$/, @ARGV)) {
6 $linkargs = sprintf("%s -L$libdir -lperl %s", @Config{qw(ldflags libs)});
7}
8
9$cccmd = "$Config{cc} $Config{ccflags} -I$libdir @ARGV $linkargs";
10print "$cccmd\n";
11exec $cccmd;