Makefile, .gitignore, .editorconfig, configure, tests/cc-compat.sh: added configure script for compiler optimizations

This commit is contained in:
2024-01-15 15:30:21 -07:00
parent 622c13021d
commit 49a3bb9f30
5 changed files with 55 additions and 13 deletions

View File

@@ -9,18 +9,19 @@
set -e
if ! ls GNUmakefile >/dev/null 2>&1
if ! ls Makefile >/dev/null 2>&1
then
printf '%s: Run this script in the root of the project.\n' "$0" 1>&2
exit 64 # sysexits.h(3) EX_USAGE
fi
make clean
./configure clean
./configure
for CC in cc \
clang \
gcc \
tcc \
'zig cc'
do
export CC