X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=gruntmaster-compile;h=b4c2ab12e78a8d440cc3ace415e80eba25c496f5;hp=35a34244c4122f63bd1fc4fce266b817d777e1d0;hb=498646e00c11ecb137eac12e4eab92b7f8a3fb98;hpb=496fffaa1f2582bd36d8426a0dcf22d94c5fd849 diff --git a/gruntmaster-compile b/gruntmaster-compile index 35a3424..b4c2ab1 100755 --- a/gruntmaster-compile +++ b/gruntmaster-compile @@ -20,7 +20,10 @@ if ($ret) { exec 'g++', qw/-DONLINE_JUDGE -std=gnu++11 -fabi-version=6 -Wall -Wextra -O2 -o/, $basename, $name when 'CPP'; exec 'gmcs', '-d:ONLINE_JUDGE', $name when 'MONO'; exec 'javac', $name when 'JAVA'; - exec 'fpc', qw/-dONLINE_JUDGE -O2 -n/, $name when 'PASCAL'; + 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'] } } @@ -52,7 +55,7 @@ Compile commands for each format: =item CPP - g++ -DONLINE_JUDGE -std=gnu11 -fabi-version=6 -Wall -Wextra -O2 -o $output $input + g++ -DONLINE_JUDGE -std=gnu++11 -fabi-version=6 -Wall -Wextra -O2 -o $output $input =item MONO @@ -64,7 +67,19 @@ Compile commands for each format: =item PASCAL - fpc -dONLINE_JUDGE -O2 -n $input + fpc -dONLINE_JUDGE -O2 $input + +=item GOLANG + + go build -compiler gc $input + +=item GCCGO + + go build -compiler gccgo $input + +=item HASKELL + + ghc -DONLINE_JUDGE -Wall -O2 -o $output $input =item PERL