gcc add extensions
This commit is contained in:
parent
f72c51d614
commit
dfdf8ce76e
|
@ -5,16 +5,16 @@
|
||||||
|
|
||||||
case "${PISTON_ALIAS}" in
|
case "${PISTON_ALIAS}" in
|
||||||
gcc | c)
|
gcc | c)
|
||||||
gcc -std=c11 "$@" -lm
|
rename 's/$/\.c/' "$@" # Add .c extension
|
||||||
|
gcc -std=c11 *.c -lm
|
||||||
;;
|
;;
|
||||||
g++ | c++ | cpp)
|
g++ | c++ | cpp)
|
||||||
g++ -std=c++17 "$@"
|
rename 's/$/\.cpp/' "$@" # Add .cpp extension
|
||||||
;;
|
g++ -std=c++17 *.cpp
|
||||||
gccgo | go)
|
|
||||||
gccgo "$@"
|
|
||||||
;;
|
;;
|
||||||
gdc | d)
|
gdc | d)
|
||||||
gdc "$@"
|
rename 's/$/\.d/' "$@" # Add .d extension
|
||||||
|
gdc *.d
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "How did you get here? (${PISTON_ALIAS})"
|
echo "How did you get here? (${PISTON_ALIAS})"
|
||||||
|
|
Loading…
Reference in New Issue