pkg(gcc-10.2.0): Add c, c++ and D via gcc 10.2.0

This commit is contained in:
Thomas Hobson 2021-03-13 23:12:50 +13:00
parent 3bec1c3499
commit f852b60b69
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
8 changed files with 83 additions and 0 deletions

25
packages/gcc/10.2.0/compile vendored Normal file
View file

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Put instructions to compile source code, remove this file if the language does not require this stage
case "${PISTON_ALIAS}" in
gcc | c)
gcc -std=c11 $* -lm
;;
g++ | c++ | cpp)
g++ -std=c++17 $*
;;
gccgo | go)
gccgo $*
;;
gdc | d)
gdc $*
;;
*)
echo "How did you get here? (${PISTON_ALIAS})"
exit 1
;;
esac
chmod +x a.out