From 6a10f03ff81606e567c6891a90d70066a03c686e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 8 Oct 2019 10:26:02 -0300 Subject: [PATCH] Makefile compiles the Lua compiler with '-Os' The performance of the Lua compiler is not critical for Lua performance, but it is a big component in the source. So, it makes sense to trade speed for size in this component. --- makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/makefile b/makefile index ba3219bc..2c68f454 100644 --- a/makefile +++ b/makefile @@ -106,6 +106,16 @@ $(LUA_T): $(LUA_O) $(CORE_T) $(LUAC_T): $(LUAC_O) $(CORE_T) $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(CORE_T) $(LIBS) $(MYLIBS) +llex.o: + $(CC) $(CFLAGS) -Os -c llex.c + +lparser.o: + $(CC) $(CFLAGS) -Os -c lparser.c + +lcode.o: + $(CC) $(CFLAGS) -Os -c lcode.c + + clean: $(RM) $(ALL_T) $(ALL_O)