aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-10-08 10:26:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-10-08 10:26:02 -0300
commit6a10f03ff81606e567c6891a90d70066a03c686e (patch)
treeda1320d0ef90f07e58965971d57d195531beba09 /makefile
parent7bd1e53753de7176eb0b23f2bf19ad2235dec826 (diff)
downloadlua-6a10f03ff81606e567c6891a90d70066a03c686e.tar.gz
lua-6a10f03ff81606e567c6891a90d70066a03c686e.tar.bz2
lua-6a10f03ff81606e567c6891a90d70066a03c686e.zip
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.
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/makefile b/makefile
index ba3219bc..2c68f454 100644
--- a/makefile
+++ b/makefile
@@ -106,6 +106,16 @@ $(LUA_T): $(LUA_O) $(CORE_T)
106$(LUAC_T): $(LUAC_O) $(CORE_T) 106$(LUAC_T): $(LUAC_O) $(CORE_T)
107 $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(CORE_T) $(LIBS) $(MYLIBS) 107 $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(CORE_T) $(LIBS) $(MYLIBS)
108 108
109llex.o:
110 $(CC) $(CFLAGS) -Os -c llex.c
111
112lparser.o:
113 $(CC) $(CFLAGS) -Os -c lparser.c
114
115lcode.o:
116 $(CC) $(CFLAGS) -Os -c lcode.c
117
118
109clean: 119clean:
110 $(RM) $(ALL_T) $(ALL_O) 120 $(RM) $(ALL_T) $(ALL_O)
111 121