Add support for C11 and C++17 in gcc and g++

This commit is contained in:
Gianluca Recchia 2019-11-04 20:04:12 +01:00
parent 2dfa66bc59
commit 41f4b31830
No known key found for this signature in database
GPG Key ID: 3C2B4128D9A1F218
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
cd /tmp/$2
timeout -s KILL 10 gcc -o binary -x c code.code
timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"

View File

@ -1,3 +1,3 @@
cd /tmp/$2
timeout -s KILL 10 g++ -o binary -x c++ code.code
timeout -s KILL 10 g++ -std=c++17 -o binary -x c++ code.code
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"