commit 0bdf144c40276bcd9b16323994e908d911fcbb5a
parent c76f0e587bf07ee21ce8ebaf872f724be83e5c0a
Author: vx_clutch <[email protected]>
Date: Thu, 11 Sep 2025 08:37:25 -0400
Update configure for windows
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
@@ -28,9 +28,9 @@ LDFLAGS=
CC=
printf "checking for C compiler... "
+trycc clang
trycc gcc
trycc cc
-trycc clang
trycc icx
printf "%s\n" "$CC"
@@ -63,6 +63,11 @@ if [ -z "$DEBUG" ]; then
CFLAGS="-std=c23 -O0 -g3 -Wall -Wextra -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wformat=2 -Wnull-dereference -Wconversion -Wsign-conversion -Wcast-qual -Wcast-align=strict -Wpointer-arith -Wstrict-overflow=5 -Wstrict-aliasing=2 -Wundef -Wunreachable-code -Wswitch-enum -fanalyzer -fsanitize=undefined,address -fstack-protector-strong -D_FORTIFY_SOURCE=3"
fi
+case "$OSTYPE"
+case "cygwin"|"msys") echo "enabling windows specific flags" ; CFLAGS="-v ${CFLAGS}";;
+*) ;;
+easc
+
printf "creating config.mak... "
printf "PREFIX=%s\n" "$prefix" > config.mak
printf "CFLAGS=%s\n" "$CFLAGS" >> config.mak