Skip to content
Snippets Groups Projects
Commit c509b6f0 authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

lua: remove unsupported flags for llvm

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.
parent d04058b5
No related branches found
No related tags found
No related merge requests found
SRC := $(filter-out loadlib.c lua.c luac.c,$(wildcard *.c)) SRC := $(filter-out loadlib.c lua.c luac.c,$(wildcard *.c))
CFLAGS += -fstack-usage -fconserve-stack \ ifneq (llvm, $(TOOLCHAIN))
-DLUA_MAXCAPTURES=16 \ CFLAGS += -fstack-usage -fconserve-stack
-DL_MAXLENNUM=50 endif
CFLAGS += -DLUA_MAXCAPTURES=16 -DL_MAXLENNUM=50
# Enable these options to debug stack usage # Enable these options to debug stack usage
# -Wstack-usage=128 -Wno-error=stack-usage=128 # -Wstack-usage=128 -Wno-error=stack-usage=128
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment