Pass -fsigned-char to make sure that char type is a signed type

This commit is contained in:
NukeBird 2025-12-01 21:29:01 +03:00
parent 6061b383a3
commit 778e9095a9

View file

@ -1,7 +1,7 @@
CC = clang
AXL_SOURCES = $(filter-out main.c %_test.c, $(wildcard *.c))
TEST_EXES = $(patsubst %.c,%.exe,$(wildcard *_test.c))
TEST_CFLAGS = -Wall -Wextra -Werror -pedantic -std=c11 -static -Oz
TEST_CFLAGS = -Wall -Wextra -Werror -pedantic -std=c11 -static -Oz -fsigned-char
CFLAGS = $(TEST_CFLAGS) -nostdlib -ffreestanding
LDFLAGS = -Wl,/SUBSYSTEM:CONSOLE,/ENTRY:_start -fuse-ld=lld
LIBS = -lkernel32