From dfdf8ce76e396790b6f399011fe898cfecf407b6 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sat, 24 Apr 2021 19:46:36 +1200 Subject: [PATCH] gcc add extensions --- packages/gcc/10.2.0/compile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/gcc/10.2.0/compile b/packages/gcc/10.2.0/compile index acc9ae4..8ef8ec5 100644 --- a/packages/gcc/10.2.0/compile +++ b/packages/gcc/10.2.0/compile @@ -5,16 +5,16 @@ case "${PISTON_ALIAS}" in gcc | c) - gcc -std=c11 "$@" -lm + rename 's/$/\.c/' "$@" # Add .c extension + gcc -std=c11 *.c -lm ;; g++ | c++ | cpp) - g++ -std=c++17 "$@" - ;; - gccgo | go) - gccgo "$@" + rename 's/$/\.cpp/' "$@" # Add .cpp extension + g++ -std=c++17 *.cpp ;; gdc | d) - gdc "$@" + rename 's/$/\.d/' "$@" # Add .d extension + gdc *.d ;; *) echo "How did you get here? (${PISTON_ALIAS})"