]> iEval git - gruntmaster-daemon.git/commitdiff
Add formats GCCGO, GOLANG, HASKELL
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 26 May 2014 18:40:53 +0000 (21:40 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 26 May 2014 18:40:53 +0000 (21:40 +0300)
gruntmaster-compile
lib/Gruntmaster/Daemon.pm
lib/Gruntmaster/Daemon/Format.pm

index 4e600966c5799cb83b11c1ace435d4c3f5067bb9..5228bddf144709b0572b171e7752183f37808e8d 100755 (executable)
@@ -21,6 +21,9 @@ if ($ret) {
                exec 'gmcs', '-d:ONLINE_JUDGE', $name when  'MONO';
                exec 'javac', $name when 'JAVA';
                exec 'fpc', qw/-dONLINE_JUDGE -O2/, $name when 'PASCAL';
+               exec 'go', qw/build -compiler gc/, $name when 'GOLANG';
+               exec 'go', qw/build -compiler gccgo/, $name, when 'GCCGO';
+               exec 'ghc', qw/-DONLINE_JUDGE -Wall -O2 -o/, $basename, $name when 'HASKELL';
                copy $name, $basename when ['PERL', 'PYTHON']
        }
 }
index b7b6e0616a5192b7076412bed2c54f17da547d53..1c8ceceda53f8cd4d76e9084af41bbcdc3cde83c 100644 (file)
@@ -23,6 +23,9 @@ use constant PAGE_SIZE => 10;
 use constant FORMAT_EXTENSION => {
        C => 'c',
        CPP => 'cpp',
+       GCCGO => 'go',
+       GOLANG => 'go',
+       HASKELL => 'hs',
        MONO => 'cs',
        JAVA => 'java',
        PASCAL => 'pas',
index dc75fa147db478ae4050be5d3a1c3b442f8e29c5..2bfbc1a97f9c1dbc9802a5b14fd00ba9633590cb 100644 (file)
@@ -24,7 +24,7 @@ sub command_and_args{
        my ($format, $basename) = @_;
 
        given($format) {
-               "./$basename" when [qw/C CPP PASCAL/];
+               "./$basename" when [qw/C CPP GCCGO GOLANG HASKELL PASCAL/];
                "./$basename.exe" when 'MONO';
                java => $basename when 'JAVA';
                perl => $basename when 'PERL';
This page took 0.031339 seconds and 4 git commands to generate.