mirror of https://github.com/rusefi/lua.git
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.
This commit is contained in:
parent
7bd1e53753
commit
6a10f03ff8
10
makefile
10
makefile
|
@ -106,6 +106,16 @@ $(LUA_T): $(LUA_O) $(CORE_T)
|
||||||
$(LUAC_T): $(LUAC_O) $(CORE_T)
|
$(LUAC_T): $(LUAC_O) $(CORE_T)
|
||||||
$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(CORE_T) $(LIBS) $(MYLIBS)
|
$(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:
|
clean:
|
||||||
$(RM) $(ALL_T) $(ALL_O)
|
$(RM) $(ALL_T) $(ALL_O)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue