Prevents error: clang: error: unknown argument: '-fstack-usage' clang: error: unknown argument: '-fconserve-stack' The flags are here to print debug information and try to optimize stack but are not required.
13 lines
325 B
Lua
13 lines
325 B
Lua
SRC := $(filter-out loadlib.c lua.c luac.c,$(wildcard *.c))
|
|
|
|
ifneq (llvm, $(TOOLCHAIN))
|
|
CFLAGS += -fstack-usage -fconserve-stack
|
|
endif
|
|
|
|
CFLAGS += -DLUA_MAXCAPTURES=16 -DL_MAXLENNUM=50
|
|
|
|
# Enable these options to debug stack usage
|
|
# -Wstack-usage=128 -Wno-error=stack-usage=128
|
|
|
|
include $(RIOTBASE)/Makefile.base
|