Avoid passing -g to can-floor-without-libm as clang doesn't like -g with -o /dev/null

This commit is contained in:
K. Lange 2024-01-07 21:27:54 +09:00
parent eb0d40a2ad
commit 6211f81535

View File

@ -21,7 +21,7 @@ KRKMODS = $(wildcard modules/*.krk modules/*/*.krk modules/*/*/*.krk)
all: ${TARGET} ${MODULES} ${TOOLS} ${GENMODS}
ifneq ($(shell tools/can-floor-without-libm.sh "$(CC) $(CFLAGS)"),yes)
ifneq ($(shell tools/can-floor-without-libm.sh "$(CC) $(filter-out -g,$(CFLAGS))"),yes)
LDLIBS += -lm
endif