diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-10-08 10:26:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-10-08 10:26:02 -0300 |
commit | 6a10f03ff81606e567c6891a90d70066a03c686e (patch) | |
tree | da1320d0ef90f07e58965971d57d195531beba09 /makefile | |
parent | 7bd1e53753de7176eb0b23f2bf19ad2235dec826 (diff) | |
download | lua-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-- | makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 | ||
109 | llex.o: | ||
110 | $(CC) $(CFLAGS) -Os -c llex.c | ||
111 | |||
112 | lparser.o: | ||
113 | $(CC) $(CFLAGS) -Os -c lparser.c | ||
114 | |||
115 | lcode.o: | ||
116 | $(CC) $(CFLAGS) -Os -c lcode.c | ||
117 | |||
118 | |||
109 | clean: | 119 | clean: |
110 | $(RM) $(ALL_T) $(ALL_O) | 120 | $(RM) $(ALL_T) $(ALL_O) |
111 | 121 | ||