piston/packages/gcc/10.2.0/compile

25 lines
462 B
Plaintext
Raw Normal View History

#!/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)
2021-03-14 03:11:33 +01:00
gcc -std=c11 "$@" -lm
;;
g++ | c++ | cpp)
2021-03-14 03:11:33 +01:00
g++ -std=c++17 "$@"
;;
gccgo | go)
2021-03-14 03:11:33 +01:00
gccgo "$@"
;;
gdc | d)
2021-03-14 03:11:33 +01:00
gdc "$@"
;;
*)
echo "How did you get here? (${PISTON_ALIAS})"
exit 1
;;
esac
chmod +x a.out