mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
pkg(gcc-10.2.0): Add c, c++ and D via gcc 10.2.0
This commit is contained in:
parent
3bec1c3499
commit
f852b60b69
8 changed files with 83 additions and 0 deletions
25
packages/gcc/10.2.0/compile
vendored
Normal file
25
packages/gcc/10.2.0/compile
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue