Add Kotlin support

This commit is contained in:
aveliz1999 2020-06-04 15:01:14 -04:00
parent b750de1f5e
commit c36c5a6e63
7 changed files with 24 additions and 0 deletions

View file

@ -66,6 +66,9 @@ case "$lang" in
"julia" | "jl")
bin=julia
;;
"kotlin")
bin=kotlin
;;
"nasm" | "asm")
bin=nasm
;;

4
lxc/executors/kotlin Executable file
View file

@ -0,0 +1,4 @@
cd /tmp/$2
cp code.code code.kt
timeout -s KILL 10 kotlinc code.kt -include-runtime -d code.jar
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 java -jar code.jar"

View file

@ -24,6 +24,9 @@ echo '---'
echo 'julia'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "julia --version"
echo '---'
echo 'kotlin'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "kotlinc -version"
echo '---'
echo 'nasm'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "nasm -version"
echo '---'