Skip to content

Commit a54c123

Browse files
prrockzedproffapt
andauthored
add: the cpp20 standard (#15)
Co-authored-by: Arpit Bhardwaj <proffapt@pm.me>
1 parent 10c6812 commit a54c123

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ run() {
8383
# C[++] fam specifics
8484
default_debugger
8585
CFLAGS="-Wall"
86+
CPPSTD="-std=c++20"
8687
if [[ $DEBUG == true ]]; then
8788
CFLAGS+=" -g -O0"
8889
else
@@ -102,7 +103,7 @@ run() {
102103
fi
103104

104105
elif [[ ${FILE#*.} == cpp ]]; then
105-
"${CXX:=g++}" ${CFLAGS} "$FILE" -o "${FILE%%.*}.out"
106+
"${CXX:=g++}" ${CPPSTD} ${CFLAGS} "$FILE" -o "${FILE%%.*}.out"
106107
if [[ $DEBUG == true ]]; then
107108
"$debugger" "${FILE%%.*}.out"
108109
elif [[ $COMPILE != true ]]; then

0 commit comments

Comments
 (0)