Files
libkeke/test.sh
2025-04-04 01:22:48 -05:00

8 lines
191 B
Bash
Executable File

#!/bin/bash
test "$1" = "" && exit 1
test -f test_$1 && rm test_$1
cc=clang
test "" = "$(which clang 2>&1)" && cc=gcc
$cc -O2 -Wall -Wextra -Wno-c2x-extensions -o test_$1 test_$1.c
./test_$1