8 lines
191 B
Bash
Executable File
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
|