mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
Add provides key to some languages
Provides key allows 1 package to provide multiple languages Expect an API update to work with these new packages
This commit is contained in:
parent
3b25ec4386
commit
ccc1e4c08b
5 changed files with 37 additions and 10 deletions
10
packages/gcc/10.2.0/compile
vendored
10
packages/gcc/10.2.0/compile
vendored
|
@ -3,21 +3,21 @@
|
|||
# Put instructions to compile source code, remove this file if the language does not require this stage
|
||||
|
||||
|
||||
case "${PISTON_ALIAS}" in
|
||||
gcc | c)
|
||||
case "${PISTON_LANGUAGE}" in
|
||||
c)
|
||||
rename 's/$/\.c/' "$@" # Add .c extension
|
||||
gcc -std=c11 *.c -lm
|
||||
;;
|
||||
g++ | c++ | cpp)
|
||||
c++)
|
||||
rename 's/$/\.cpp/' "$@" # Add .cpp extension
|
||||
g++ -std=c++17 *.cpp
|
||||
;;
|
||||
gdc | d)
|
||||
d)
|
||||
rename 's/$/\.d/' "$@" # Add .d extension
|
||||
gdc *.d
|
||||
;;
|
||||
*)
|
||||
echo "How did you get here? (${PISTON_ALIAS})"
|
||||
echo "How did you get here? (${PISTON_LANGUAGE})"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue