1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/lua/Makefile.lua

21 lines
617 B
Lua
Raw Normal View History

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
# Upstream has several of these warnings which will not be fixed: because it
# would require a big refactor and because the lua developers do not accept
# patches.
CFLAGS += -Wno-cast-qual
# Enable these options to debug stack usage
# -Wstack-usage=128 -Wno-error=stack-usage=128
include $(RIOTBASE)/Makefile.base
ifneq (,$(filter -Wformat-nonliteral -Wformat=2, $(CFLAGS)))
CFLAGS += -Wno-format-nonliteral
endif