From 0bdf144c40276bcd9b16323994e908d911fcbb5a Mon Sep 17 00:00:00 2001 From: vx_clutch <98831688+vx-clutch@users.noreply.github.com> Date: Thu, 11 Sep 2025 08:37:25 -0400 Subject: [PATCH] Update configure for windows --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 174553d..49b831f 100755 --- 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