Disable strict C99, as binary constants are currently used in rv32c code

This commit is contained in:
Toby Jaffey 2025-12-17 15:51:19 +00:00
parent adec69e1d7
commit 8fca9fcec1
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ CFLAGS += `pkg-config sdl3 --cflags`
endif
CFLAGS += -Wall -Werror -Wno-gnu-binary-literal
CFLAGS += -pedantic -std=c99 -O0 -g
CFLAGS += -O0 -g
CFLAGS += -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=$(shell echo "1024 * 1024 * 8" | bc)
all:

View file

@ -1,7 +1,7 @@
TOPDIR=../..
all:
gcc -g -Wall -Werror -pedantic -std=c99 -Wno-gnu-binary-literal -O0 -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=65536 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host ${TOPDIR}/uvm32/uvm32.c host.c
gcc -g -Wall -Werror -Wno-gnu-binary-literal -O0 -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=65536 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host ${TOPDIR}/uvm32/uvm32.c host.c
clean:
rm -f host