]>
iEval git - gruntmaster-daemon.git/blob - gruntmaster-compile
3 no if $] > 5.017011, warnings
=> 'experimental::smartmatch';
5 use File
::Copy qw
/copy/;
7 my ($format, $basename, $name) = @ARGV;
8 my $ret = fork // die $!;
10 $SIG{ALRM
} = sub {kill KILL
=> $ret};
16 exec 'gcc', qw
/-DONLINE_JUDGE -std=gnu11 -Wextra -O2 -o/, $basename, $name when 'C';
17 exec 'g++', qw
/-DONLINE_JUDGE -std=gnu++11 -fabi-version=6 -Wextra -O2 -o/, $basename, $name when 'CPP';
18 exec 'gmcs', '-d:ONLINE_JUDGE', $name when 'MONO';
19 exec 'javac', $name when 'JAVA';
20 exec 'fpc', qw
/-dONLINE_JUDGE -O2 -n/, $name when 'PASCAL';
21 copy
$name, $basename when ['PERL', 'PYTHON']
This page took 0.048618 seconds and 5 git commands to generate.