commit 40b564c49b5d273f2fd3f6879c4a01903d299f19
parent 03e0c98f5d45f980d7f78324681e208ea07700e3
Author: awy <awy@awy.one>
Date: Wed, 25 Jun 2025 17:19:42 +0300
cc extension
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.local/bin/compiler b/.local/bin/compiler
@@ -18,7 +18,7 @@ case "${ext}" in
mom|ms) preconv "${file}" | refer -PS -e | groff -T pdf -m"${ext}" > "${base}.pdf" ;;
c) cc "${file}" -o "${base}" && "${base}" ;;
cob) cobc -x -o "$base" "$file" && "$base" ;;
- cpp) g++ "${file}" -o "${base}" && "./${base}" ;;
+ cpp|cc) g++ "${file}" -o "${base}" && "${base}" ;;
cs) mcs "${file}" && mono "${base}.exe" ;;
go) go run "${file}" ;;
h) doas make install ;;