piston/packages/gcc/10.2.0/compile
2021-03-13 23:12:50 +13:00

25 lines
No EOL
454 B
Bash

#!/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