This commit is contained in:
2026-06-27 14:56:54 +02:00
parent beb375f0ab
commit fee227e2ae
2 changed files with 4 additions and 23 deletions

View File

@@ -2,6 +2,7 @@ cc-clean(){
rm -rf ./**/*.out 2>/dev/null
}
# compile and run a single C program. Useful for prototyping.
cc-run(){
local file
if [ -z "$1" ]; then
@@ -12,11 +13,6 @@ cc-run(){
file="$1"
shift
#if command -v norminette &>/dev/null
#then
# norminette "${file}" -R CheckForbiddenSourceHeader
#fi
gcc "${file}" -o "${file}.out" -Wall -Wextra -Werror -g3 -fsanitize=address $@ && \
"./${file}.out"