Merge pull request #5 from brainplot/more-recent-c-cpp-support

Add support for C11 and C++17 in gcc and g++
This commit is contained in:
Brian Seymour 2019-11-04 14:01:22 -06:00 committed by GitHub
commit 7bc9b5b63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
cd /tmp/$2 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" 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 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" runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"